- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 52 for wantnil (0.26 sec)
-
src/cmd/cgo/internal/teststdio/stdio_test.go
"fib.go", "hello.go", } { file := file wantFile := strings.Replace(file, ".go", ".out", 1) t.Run(file, func(t *testing.T) { cmd := exec.Command("go", "run", file) got, err := cmd.CombinedOutput() if err != nil { t.Fatalf("%v: %s\n%s", cmd, err, got) } got = bytes.ReplaceAll(got, []byte("\r\n"), []byte("\n")) want, err := os.ReadFile(wantFile) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 20:56:09 UTC 2023 - 1.8K bytes - Viewed (0) -
src/runtime/symtabinl_test.go
// this robust. continue } for ; uf.valid(); uf = u.next(uf) { file, line := u.fileLine(uf) const wantFile = "symtabinl_test.go" if !stringslite.HasSuffix(file, wantFile) { t.Errorf("tiuTest+%#x: want file ...%s, got %s", pc-pc1, wantFile, file) } sf := u.srcFunc(uf) name := sf.name() const namePrefix = "runtime." if stringslite.HasPrefix(name, namePrefix) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 3K bytes - Viewed (0) -
cmd/erasure-common.go
}, index) } dataArray := make([]ReadMultipleResp, 0, len(req.Files)) // Merge results. They should come in order from each. for _, wantFile := range req.Files { quorum := 0 toAdd := ReadMultipleResp{ Bucket: req.Bucket, Prefix: req.Prefix, File: wantFile, } for i := range resps { if disks[i] == nil { continue } select { case <-ctx.Done():
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.6K bytes - Viewed (0) -
src/log/slog/record_test.go
got.File = got.File[i+1:] } if got.Function != test.wantFunction || got.File != test.wantFile || (got.Line > 0) != test.wantLinePositive { t.Errorf("depth %d: got (%q, %q, %d), want (%q, %q, %t)", test.depth, got.Function, got.File, got.Line, test.wantFunction, test.wantFile, test.wantLinePositive) } } } func TestAliasingAndClone(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 15:10:55 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/vet/vet_test.go
} } // TestTags verifies that the -tags argument controls which files to check. func TestTags(t *testing.T) { t.Parallel() for tag, wantFile := range map[string]int{ "testtag": 1, // file1 "x testtag y": 1, "othertag": 2, } { tag, wantFile := tag, wantFile t.Run(tag, func(t *testing.T) { t.Parallel() t.Logf("-tags=%s", tag) cmd := vetCmd(t, "-tags="+tag, "tagtest")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0) -
src/cmd/link/dwarf_test.go
t.Fatalf("did not find file:line for %#x (main.main)", addr) } else if err != nil { t.Fatal(err) } if !strings.HasSuffix(line.File.Name, wantFile) || line.Line != wantLine { t.Errorf("%#x is %s:%d, want %s:%d", addr, line.File.Name, line.Line, filepath.Join("...", wantFile), wantLine) } }) } } func TestDWARF(t *testing.T) { testDWARF(t, "", true) if !testing.Short() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 17:05:14 UTC 2023 - 6.9K bytes - Viewed (0) -
src/os/dir_windows.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 7.7K bytes - Viewed (0) -
src/testing/testing_test.go
// marked as failed, and that failure should propagate up to the parents. cFail := bytes.Count(out, []byte("--- FAIL:")) wantFail := 0 if race.Enabled { wantFail = 4 } if cFail != wantFail { t.Errorf(`got %d "--- FAIL:" lines, want %d`, cReport, wantReport) } } func TestRaceInCleanup(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 19.3K bytes - Viewed (0) -
src/log/slog/text_handler_test.go
"time" ) var testTime = time.Date(2000, 1, 2, 3, 4, 5, 0, time.UTC) func TestTextHandler(t *testing.T) { for _, test := range []struct { name string attr Attr wantKey, wantVal string }{ { "unquoted", Int("a", 1), "a", "1", }, { "quoted", String("x = y", `qu"o`), `"x = y"`, `"qu\"o"`, }, { "String method",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 19:05:59 UTC 2023 - 3.8K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/builder_test.go
for i, got := range gots { gotYaml, err := protomarshal.ToYAML(got) if err != nil { t.Fatalf("failed to convert to YAML: %v", err) } wantFile := basePath + baseDir + wants[i] util.RefreshGoldenFile(t, []byte(gotYaml), wantFile) want := yamlConfig(t, wantFile, forTCP) wantYaml, err := protomarshal.ToYAML(want) if err != nil { t.Fatalf("failed to convert to YAML: %v", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.8K bytes - Viewed (0)