- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 355 for TT (0.1 sec)
-
src/unicode/utf16/utf16_test.go
func TestEncode(t *testing.T) { for _, tt := range encodeTests { out := Encode(tt.in) if !reflect.DeepEqual(out, tt.out) { t.Errorf("Encode(%x) = %x; want %x", tt.in, out, tt.out) } } } func TestAppendRune(t *testing.T) { for _, tt := range encodeTests { var out []uint16 for _, u := range tt.in { out = AppendRune(out, u) } if !reflect.DeepEqual(out, tt.out) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 6.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
var attr admission.Attributes if tt.IsCRD { attr = webhooktesting.NewAttributeUnstructured(ns, tt.AdditionalLabels, tt.IsDryRun) } else { attr = webhooktesting.NewAttribute(ns, tt.AdditionalLabels, tt.IsDryRun) } err = wh.Admit(context.TODO(), attr, objectInterfaces) if tt.ExpectAllow != (err == nil) { t.Errorf("expected allowed=%v, but got err=%v", tt.ExpectAllow, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0) -
pkg/kube/util_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { t.Setenv("KUBECONFIG", tt.envKubeconfig) resp, err := BuildClientConfig(tt.explicitKubeconfig, tt.context) if (err != nil) != tt.wantErr { t.Fatalf("BuildClientConfig() error = %v, wantErr %v", err, tt.wantErr) } if resp != nil && resp.Host != tt.wantHost {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 04:16:49 UTC 2024 - 10.8K bytes - Viewed (0) -
pilot/pkg/networking/util/util_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := ConvertLocality(tt.locality) if !reflect.DeepEqual(got, tt.want) { t.Errorf("Expected locality %#v, but got %#v", tt.want, got) } // Verify we can reverse the conversion back to the original input reverse := LocalityToString(got) if tt.reverse != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 40K bytes - Viewed (0) -
pilot/pkg/xds/nds_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 4.6K bytes - Viewed (0) -
operator/pkg/util/yaml_test.go
expectedErr: nil, }, } for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { if gotOverlays, err := OverlayTrees(tt.inBase, tt.inOverlays); !reflect.DeepEqual(gotOverlays, tt.expectedOverlay) || ((err != nil && tt.expectedErr == nil) || (err == nil && tt.expectedErr != nil)) { t.Errorf("%s: expected overlay & err %v %v got %v %v", tt.desc, tt.expectedOverlay, tt.expectedErr, gotOverlays, err) } })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 06 17:00:14 UTC 2024 - 6.7K bytes - Viewed (0) -
logger/sql_test.go
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0) -
src/runtime/minmax_test.go
return x == y && math.Signbit(x) == math.Signbit(y) } func TestMinFloat(t *testing.T) { for _, tt := range tests { if z := min(tt.min, tt.max); !eq(z, tt.min) { t.Errorf("min(%v, %v) = %v, want %v", tt.min, tt.max, z, tt.min) } if z := min(tt.max, tt.min); !eq(z, tt.min) { t.Errorf("min(%v, %v) = %v, want %v", tt.max, tt.min, z, tt.min) } } for _, x := range all { if z := min(nan, x); !math.IsNaN(z) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 01:41:50 UTC 2024 - 3.6K bytes - Viewed (0) -
src/reflect/type_test.go
x int32 y int16 }{})}, false}, {"struct {_ int32 }", args{reflect.TypeOf(struct{ _ int32 }{})}, false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := reflect.IsRegularMemory(tt.args.t); got != tt.want { t.Errorf("isRegularMemory() = %v, want %v", got, tt.want) } }) } } var sinkType reflect.Type func BenchmarkTypeForString(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
src/net/ip_test.go
} func TestIPAddrScope(t *testing.T) { for _, tt := range ipAddrScopeTests { if ok := tt.scope(tt.in); ok != tt.ok { t.Errorf("%s(%q) = %v, want %v", name(tt.scope), tt.in, ok, tt.ok) } ip := tt.in.To4() if ip == nil { continue } if ok := tt.scope(ip); ok != tt.ok { t.Errorf("%s(%q) = %v, want %v", name(tt.scope), ip, ok, tt.ok) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 01:17:29 UTC 2024 - 25.7K bytes - Viewed (0)