- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 525 for wants (0.03 sec)
-
src/archive/zip/writer_test.go
} if got.Method != want.method { t.Errorf("%s: got Method %#x; want %#x", want.name, got.Method, want.method) } if got.Flags != want.flags { t.Errorf("%s: got Flags %#x; want %#x", want.name, got.Flags, want.flags) } if got.CRC32 != want.crc32 { t.Errorf("%s: got CRC32 %#x; want %#x", want.name, got.CRC32, want.crc32) } if got.CompressedSize64 != want.compressedSize {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 14.4K bytes - Viewed (0) -
src/cmd/api/api_test.go
tests := []struct { pkg string want bool }{ {"net/http", true}, {"net/http/internal-foo", true}, {"net/http/internal", false}, {"net/http/internal/bar", false}, {"internal/foo", false}, {"internal", false}, } for _, tt := range tests { got := !internalPkg.MatchString(tt.pkg) if got != tt.want { t.Errorf("%s is internal = %v; want %v", tt.pkg, got, tt.want) } } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri May 02 17:06:27 UTC 2025 - 7.6K bytes - Viewed (0) -
src/bytes/buffer_test.go
n, err := buf.Write(testBytes[0:1]) if want := 1; err != nil || n != want { t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil) } check(t, "TestBasicOperations (4)", &buf, "a") buf.WriteByte(testString[1]) check(t, "TestBasicOperations (5)", &buf, "ab") n, err = buf.Write(testBytes[2:26]) if want := 24; err != nil || n != want {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 19 16:13:04 UTC 2025 - 18.6K bytes - Viewed (0) -
cmd/local-locker_test.go
} rResources[i] = arg.Resources[0] } if len(l.lockMap) != len(rResources)+len(wResources) { t.Fatalf("lockmap len, got %d, want %d + %d", len(l.lockMap), len(rResources), len(wResources)) } if len(l.lockUID) != len(rResources)+len(wResources) { t.Fatalf("lockUID len, got %d, want %d + %d", len(l.lockUID), len(rResources), len(wResources)) } // Expire an hour from now, should keep all l.expireOldLocks(time.Hour)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.8K bytes - Viewed (0) -
cmd/erasure-multipart.go
} } wantCS := map[string]string{ hash.ChecksumCRC32.String(): part.ChecksumCRC32, hash.ChecksumCRC32C.String(): part.ChecksumCRC32C, hash.ChecksumSHA1.String(): part.ChecksumSHA1, hash.ChecksumSHA256.String(): part.ChecksumSHA256, hash.ChecksumCRC64NVME.String(): part.ChecksumCRC64NVME, } if wantCS[checksumType.String()] != crc {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 47.3K bytes - Viewed (0) -
src/bytes/bytes_test.go
if got := IndexRune([]byte(tt.in), tt.rune); got != tt.want { t.Errorf("IndexRune(%q, %d) = %v; want %v", tt.in, tt.rune, got, tt.want) } } haystack := []byte("test世界") allocs := testing.AllocsPerRun(1000, func() { if i := IndexRune(haystack, 's'); i != 2 { t.Fatalf("'s' at %d; want 2", i) } if i := IndexRune(haystack, '世'); i != 4 { t.Fatalf("'世' at %d; want 4", i) } }) if allocs != 0 {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0) -
cmd/batch-handlers_test.go
- "bar" `, }, want: []string{"foo", "bar"}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := yaml.Unmarshal([]byte(tt.args.yamlStr), &tt.b); (err != nil) != tt.wantErr { t.Errorf("UnmarshalYAML() error = %v, wantErr %v", err, tt.wantErr) } if !slices.Equal(tt.b.Prefix.F(), tt.want) { t.Errorf("UnmarshalYAML() = %v, want %v", tt.b.Prefix.F(), tt.want) } }) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 1.7K bytes - Viewed (0) -
cmd/object-api-utils_test.go
{"abc//./../def", "def"}, {"abc/../../././../def", "../../def"}, } for _, test := range cleantests { want := test.path != test.result got := pathNeedsClean([]byte(test.path)) if !got { t.Logf("no clean: %q", test.path) } if want && !got { t.Errorf("input: %q, want %v, got %v", test.path, want, got) } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 24.1K bytes - Viewed (0) -
cmd/data-usage-cache_test.go
tests := []struct { sizes []int64 want map[string]uint64 }{ { sizes: []int64{100, 1000, 72_000, 100_000}, want: map[string]uint64{ "LESS_THAN_1024_B": 2, "BETWEEN_64_KB_AND_256_KB": 2, "BETWEEN_1024B_AND_1_MB": 2, }, }, { sizes: []int64{100, 1000, 2000, 100_000, 13 * humanize.MiByte}, want: map[string]uint64{ "LESS_THAN_1024_B": 2,
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sat Jan 13 07:51:08 UTC 2024 - 2.6K bytes - Viewed (0) -
cmd/batch-job-common-types_test.go
LowerBound: 1 << 20, }, want: false, }, { // 11MiB > 10 MiB -> out of range from right objSize: 11 << 20, sizeFilter: BatchJobSizeFilter{ UpperBound: 10 << 20, LowerBound: 1 << 20, }, want: false, }, { // 2MiB < 10MiB -> in range objSize: 2 << 20, sizeFilter: BatchJobSizeFilter{ UpperBound: 10 << 20, }, want: true, }, {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Jan 08 23:22:28 UTC 2024 - 3.3K bytes - Viewed (0)