- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 373 for testFS (0.23 sec)
-
src/testing/fstest/testfs_test.go
if err := os.Symlink(filepath.Join(tmp, "hello"), filepath.Join(tmp, "hello.link")); err != nil { t.Fatal(err) } if err := TestFS(tmpfs, "hello", "hello.link"); err != nil { t.Fatal(err) } } func TestDash(t *testing.T) { m := MapFS{ "a-b/a": {Data: []byte("a-b/a")}, } if err := TestFS(m, "a-b/a"); err != nil { t.Error(err) } } type shuffledFS MapFS
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.9K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/testing/fstest/63675.md
[TestFS] now returns a structured error that can be unwrapped (via method `Unwrap() []error`). This allows inspecting errors
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 20:57:18 UTC 2024 - 159 bytes - Viewed (0) -
src/io/fs/readdir_test.go
} for _, test := range tests { test := test t.Run(test.path, func(t *testing.T) { fi, err := Stat(testFs, test.path) if err != nil { t.Fatal(err) } dirEntry := FileInfoToDirEntry(fi) if g, w := dirEntry.Type(), test.wantMode; g != w { t.Errorf("FileMode mismatch: got=%v, want=%v", g, w) } if g, w := dirEntry.Name(), test.path; g != w {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 16:25:41 UTC 2023 - 2.6K bytes - Viewed (0) -
src/slices/sort_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0) -
src/testing/fstest/mapfs_test.go
) func TestMapFS(t *testing.T) { m := MapFS{ "hello": {Data: []byte("hello, world\n")}, "fortune/k/ken.txt": {Data: []byte("If a program is too slow, it must have a loop.\n")}, } if err := TestFS(m, "hello", "fortune", "fortune/k", "fortune/k/ken.txt"); err != nil { t.Fatal(err) } } func TestMapFSChmodDot(t *testing.T) { m := MapFS{ "a/b.txt": &MapFile{Mode: 0666},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 14:59:55 UTC 2024 - 1.3K bytes - Viewed (0) -
src/embed/internal/embedtest/embed_test.go
} } // Tests for issue 49514. var _ = '"' var _ = '\'' var _ = '🦆' func TestGlobal(t *testing.T) { testFiles(t, global, "concurrency.txt", "Concurrency is not parallelism.\n") testFiles(t, global, "testdata/hello.txt", "hello, world\n") testFiles(t, global, "testdata/glass.txt", "I can eat glass and it doesn't hurt me.\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 20:10:16 UTC 2023 - 5.4K bytes - Viewed (0) -
src/io/fs/fs.go
} w++ } return string(buf[:w]) } // IsDir reports whether m describes a directory. // That is, it tests for the [ModeDir] bit being set in m. func (m FileMode) IsDir() bool { return m&ModeDir != 0 } // IsRegular reports whether m describes a regular file. // That is, it tests that no mode type bits are set. func (m FileMode) IsRegular() bool { return m&ModeType == 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 15 21:21:41 UTC 2024 - 9.4K bytes - Viewed (0) -
test/fixedbugs/issue15002.go
if err != nil { panic(err) } // Get a slice pointing to the last byte of the good page. x := b[p-one : p] test16(x) test16i(x, 0) test32(x) test32i(x, 0) test64(x) test64i(x, 0) } func test16(x []byte) uint16 { defer func() { r := recover() if r == nil { panic("no fault or bounds check failure happened") } s := fmt.Sprintf("%s", r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 3.2K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java
assertThat(result.isPresent(), is(true)); assertThat(result.get().getRemainingProjects(), is(asList("test:B", "test:C"))); } @Test void projectsFailingAfterAnotherFailedProjectAreNotExcluded() { MavenProject projectA = createSucceededMavenProject("A"); MavenProject projectB = createFailedMavenProject("B");
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 5.6K bytes - Viewed (0) -
test/fixedbugs/issue12577.go
println("BUG: got", f, "want 0.0") return } } func test64(f float64) { if f != 0 || math.Signbit(f) { println("BUG: got", f, "want 0.0") return } } func main() { if f := -x0; f != 0 || !math.Signbit(float64(f)) { println("BUG: got", f, "want -0.0") } test32(-0.0) test32(x0) test32(x1) test32(x2) test32(x3) if f := -y0; f != 0 || !math.Signbit(f) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 22:11:11 UTC 2015 - 1011 bytes - Viewed (0)