- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for wantMap (0.14 sec)
-
src/archive/tar/reader_test.go
}, { input: makeInput(FormatGNU, "1234", makeSparseStrings(sparseDatas{{0, 0}, {1, 1}})...), wantMap: sparseDatas{{0, 0}, {1, 1}}, wantSize: 01234, }, { input: makeInput(FormatGNU, "1234", append(makeSparseStrings(sparseDatas{{0, 0}, {1, 1}}), []string{"", "blah"}...)...), wantMap: sparseDatas{{0, 0}, {1, 1}}, wantSize: 01234, }, { input: makeInput(FormatGNU, "3333",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 21 21:14:38 UTC 2022 - 47.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/stackcheck_test.go
limitRe := regexp.MustCompile(`nosplit stack over (\d+) byte limit`) m := limitRe.FindStringSubmatch(out) if m == nil { t.Fatalf("no overflow errors in output") } limit, _ := strconv.Atoi(m[1]) wantMap := map[string]string{ "main.startSelf": fmt.Sprintf( `main.startSelf<0> grows 1008 bytes %d bytes over limit `, 1008-limit), "main.startChain": fmt.Sprintf( `main.startChain<0>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:14 UTC 2022 - 2.2K bytes - Viewed (0) -
operator/pkg/util/reflect_test.go
key := 44 value := "forty four" if err := InsertIntoMap(parentMap, key, value); err != nil { t.Fatalf("got error: %s, want error: nil", err) } wantMap := map[int]string{42: "forty two", 43: "forty three", 44: "forty four"} if got, want := parentMap, wantMap; !reflect.DeepEqual(got, want) { t.Errorf("got:\n%v\nwant:\n%v\n", got, want) } badParent := struct{}{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 10.2K bytes - Viewed (0) -
test/arenas/smoke.go
} const wantLen = 125 const wantCap = 1912 sl := arena.MakeSlice[*int](a, wantLen, wantCap) if len(sl) != wantLen { log.Fatalf("bad arena slice length: got %d, want %d", len(sl), wantLen) } if cap(sl) != wantCap { log.Fatalf("bad arena slice capacity: got %d, want %d", cap(sl), wantCap) } sl = sl[:cap(sl)] for j := range sl { sl[j] = i }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 16 17:08:43 UTC 2023 - 1.6K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/storage_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 11 09:31:10 UTC 2022 - 1.5K bytes - Viewed (0) -
src/database/sql/convert_test.go
// To RawBytes {s: nil, d: &scanraw, wantraw: nil}, {s: []byte("byteslice"), d: &scanraw, wantraw: RawBytes("byteslice")}, {s: "string", d: &scanraw, wantraw: RawBytes("string")}, {s: 123, d: &scanraw, wantraw: RawBytes("123")}, {s: int8(123), d: &scanraw, wantraw: RawBytes("123")}, {s: int64(123), d: &scanraw, wantraw: RawBytes("123")}, {s: uint8(123), d: &scanraw, wantraw: RawBytes("123")},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 20:23:22 UTC 2024 - 17K bytes - Viewed (0) -
src/go/internal/gccgoimporter/importer_test.go
{pkgpath: "complexnums", name: "NP", want: "const NP untyped complex", wantval: "(-1 + 1i)"}, {pkgpath: "complexnums", name: "PN", want: "const PN untyped complex", wantval: "(1 + -1i)"}, {pkgpath: "complexnums", name: "PP", want: "const PP untyped complex", wantval: "(1 + 1i)"}, {pkgpath: "conversions", name: "Bits", want: "const Bits Units", wantval: `"bits"`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:17:57 UTC 2022 - 7.2K bytes - Viewed (0) -
internal/s3select/sql/value_test.go
}, wantVal: true, wantOk: true, }, { name: "f", fields: fields{ value: []byte("f"), }, wantVal: false, wantOk: true, }, { name: "1", fields: fields{ value: []byte("1"), }, wantVal: true, wantOk: true, }, { name: "0", fields: fields{ value: []byte("0"), }, wantVal: false,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 12.5K 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/go/format/format_test.go
gotVal := gotLit.Value if gotLit != wantLit { t.Errorf("got *ast.BasicLit address %p, want %p", gotLit, wantLit) } if gotVal != wantVal { t.Errorf("got *ast.BasicLit value %q, want %q", gotVal, wantVal) } } func TestSource(t *testing.T) { src, err := os.ReadFile(testfile) if err != nil { t.Fatal(err) } res, err := Source(src) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:46 UTC 2021 - 4.5K bytes - Viewed (0)