- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for tt (0.03 sec)
-
src/bytes/bytes_test.go
in = in[:len(tt.in)] out := Replace(in, old, new, tt.n) if s := string(out); s != tt.out { t.Errorf("Replace(%q, %q, %q, %d) = %q, want %q", tt.in, tt.old, tt.new, tt.n, s, tt.out) } if cap(in) == cap(out) && &in[:1][0] == &out[:1][0] { t.Errorf("Replace(%q, %q, %q, %d) didn't copy", tt.in, tt.old, tt.new, tt.n) } if tt.n == -1 { out := ReplaceAll(in, old, new) if s := string(out); s != tt.out {
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
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
keys: []string{"etag", "xyz"}, want: map[string]string{"content-type": "application/octet-stream"}, }, } for _, tt := range tests { if got := cleanMetadataKeys(tt.metadata, tt.keys...); !reflect.DeepEqual(got, tt.want) { t.Errorf("Test %s failed, expected %v, got %v", tt.name, tt.want, got) } } } // Tests isCompressed method func TestIsCompressed(t *testing.T) { testCases := []struct {
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/generic-handlers_test.go
{name: "long-fail", input: strings.Repeat("a/", 2000) + "../..", want: true}, } for _, tt := range tests { t.Run(tt.name, func(b *testing.B) { b.SetBytes(int64(len(tt.input))) b.ReportAllocs() for b.Loop() { if got := hasBadPathComponent(tt.input); got != tt.want { t.Fatalf("hasBadPathComponent() = %v, want %v", got, tt.want) } } }) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.2K bytes - Viewed (0) -
logger/sql_test.go
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0) -
cmd/streaming-signature-v4_test.go
} for _, tt := range tests { got, err := parseHexUint([]byte(tt.in)) if tt.wantErr != "" { if err != nil && !strings.Contains(err.Error(), tt.wantErr) { t.Errorf("parseHexUint(%q) = %v, %v; want error %q", tt.in, got, err, tt.wantErr) } } else { if err != nil || got != tt.want { t.Errorf("parseHexUint(%q) = %v, %v; want %v", tt.in, got, err, tt.want) } } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 5.7K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
{3, -1, 5, false}, {4, 5, -1, false}, {5, 5, 0, true}, {6, 5, 0, true}, {7, 5, 4, true}, } for _, tt := range tests { if got := isXLMetaErasureInfoValid(tt.data, tt.parity); got != tt.want { t.Errorf("Test %d: Expected %v but received %v -> %#v", tt.name, got, tt.want, tt) } } } // newTestXLMetaV1 - initializes new xlMetaV1Object, adds version, allocates a fresh erasure info and metadata.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 17.5K bytes - Viewed (0) -
src/cmd/api/api_test.go
}, } for _, tt := range tests { buf := new(strings.Builder) gotOK := compareAPI(buf, tt.features, tt.required, tt.exception) if gotOK != tt.ok { t.Errorf("%s: ok = %v; want %v", tt.name, gotOK, tt.ok) } if got := buf.String(); got != tt.out { t.Errorf("%s: output differs\nGOT:\n%s\nWANT:\n%s", tt.name, got, tt.out) } } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri May 02 17:06:27 UTC 2025 - 7.6K bytes - Viewed (0) -
.github/workflows/submit-github-dependency-graph.yml
DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: 'ktlint|checkstyle|.*[Tt]est(Compile|Runtime)Classpath|.*[Tt]estImplementationDependenciesMetadata|.*[Tt]estFixtures(Compile|Runtime)Classpath|.*[Tt]estFixturesImplementationDependenciesMetadata'...
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Thu Aug 21 23:08:02 UTC 2025 - 933 bytes - Viewed (0) -
src/bufio/bufio_test.go
}, } for _, tt := range tests { br := NewReaderSize(tt.r, tt.bufSize) if tt.peekSize > 0 { peekBuf, err := br.Peek(tt.peekSize) if err != nil { t.Errorf("%s: Peek(%d): %v", tt.name, tt.peekSize, err) continue } if len(peekBuf) != tt.peekSize { t.Errorf("%s: len(Peek(%d)) = %v; want %v", tt.name, tt.peekSize, len(peekBuf), tt.peekSize) continue } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 01:08:54 UTC 2025 - 51.6K bytes - Viewed (0)