- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 840 for TT (0.1 sec)
-
src/os/user/lookup_unix_test.go
} default: t.Errorf("findGroupName(%s): got unexpected error %v", tt.name, terr) } } else { if err != nil { t.Fatalf("findGroupName(%s): got unexpected error %v", tt.name, err) } if got.Gid != tt.gid { t.Errorf("findGroupName(%s): got gid %v, want %s", tt.name, got.Gid, tt.gid) } if got.Name != tt.name { t.Errorf("findGroupName(%s): got name %s, want %s", tt.name, got.Name, tt.name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 7.3K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/git_test.go
}, } { t.Run(path.Base(tt.repo)+"/"+tt.rev, runTest(tt)) if tt.repo == gitrepo1 { for _, tt.repo = range altRepos() { old := tt var m map[string]string if tt.repo == hgrepo1 { m = hgmap } if tt.info != nil { info := *tt.info tt.info = &info tt.info.Name = remap(tt.info.Name, m) tt.info.Version = remap(tt.info.Version, m)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 19:46:23 UTC 2023 - 18.9K bytes - Viewed (0) -
operator/pkg/name/name_test.go
wantErr: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got, err := Namespace(tt.args.componentName, tt.args.controlPlaneSpec) if (err != nil) != tt.wantErr { t.Errorf("Namespace() error = %v, wantErr %v", err, tt.wantErr) return } if got != tt.want { t.Errorf("Namespace() = %v, want %v", got, tt.want) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 05 14:08:11 UTC 2023 - 7.7K bytes - Viewed (0) -
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) -
operator/pkg/cache/cache_test.go
Mu: &sync.RWMutex{}, }, }, } for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { defer FlushObjectCaches() for key, value := range tt.in { objectCaches[key] = value } if gotCache := GetCache(tt.key); !reflect.DeepEqual(*gotCache, tt.want) { t.Errorf("%s: expected cache %v, got cache %v\n", tt.desc, tt.want, *gotCache) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 20 18:46:12 UTC 2023 - 5.3K bytes - Viewed (0) -
operator/pkg/object/objects_test.go
} for _, tt := range hashTests { t.Run(tt.desc, func(t *testing.T) { got := Hash(tt.kind, tt.namespace, tt.name) if got != tt.want { t.Errorf("Hash(%s): got %s for kind %s, namespace %s, name %s, want %s", tt.desc, got, tt.kind, tt.namespace, tt.name, tt.want) } }) } } func TestFromHash(t *testing.T) { hashTests := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 18.4K bytes - Viewed (0) -
operator/pkg/util/util_test.go
err: errors.New(""), }, } for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { got, err := RenderTemplate(tt.template, tt.in) if got != tt.want { t.Errorf("%s: got :%v, wanted output: %v", tt.desc, got, tt.want) } if (err == nil && tt.err != nil) || (err != nil && tt.err == nil) { t.Errorf("%s: got error :%v, wanted error: %v", tt.desc, err, tt.err) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 4.9K 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/probe/util_test.go
wantErr: true, }, } for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel() got, err := findPortByName(tt.args.container, tt.args.portName) if (err != nil) != tt.wantErr { t.Errorf("findPortByName() error = %v, wantErr %v", err, tt.wantErr) return } if got != tt.want { t.Errorf("findPortByName() = %v, want %v", got, tt.want) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 06:14:41 UTC 2023 - 3.9K 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)