- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for wantNames (0.17 sec)
-
src/cmd/go/internal/test/flagdefs_test.go
} func TestPassFlagToTest(t *testing.T) { wantNames := genflags.ShortTestFlags() missing := map[string]bool{} for _, name := range wantNames { if !passFlagToTest[name] { missing[name] = true } } if len(missing) > 0 { t.Errorf("passFlagToTest is missing entries: %v", missing) } extra := maps.Clone(passFlagToTest) for _, name := range wantNames { delete(extra, name) } if len(extra) > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 09 13:37:58 UTC 2023 - 1.6K bytes - Viewed (0) -
pkg/apis/core/pods/helpers_test.go
gotNames = append(gotNames, p.String()) return true }) if !reflect.DeepEqual(gotNames, tc.wantNames) { t.Errorf("VisitContainersWithPath() for test case %q visited containers %q, wanted to visit %q", tc.description, gotNames, tc.wantNames) } } } func TestConvertDownwardAPIFieldLabel(t *testing.T) { testCases := []struct { version string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 01:35:30 UTC 2023 - 6.1K bytes - Viewed (0) -
src/crypto/x509/root_unix_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 01 00:36:38 UTC 2023 - 6.1K bytes - Viewed (0) -
src/mime/multipart/formdata_test.go
if err != nil { t.Fatal(err) } defer dir.Close() names, err := dir.Readdirnames(0) if err != nil { t.Fatal(err) } wantNames := 1 if distinct { wantNames = numFiles } if len(names) != wantNames { t.Fatalf("temp dir contains %v files; want 1", len(names)) } if err := form.RemoveAll(); err != nil { t.Fatalf("form.RemoveAll() = %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14K bytes - Viewed (0) -
pilot/pkg/model/config_test.go
{Name: "http-alt", Port: 8080, Protocol: protocol.HTTP}, } gotNames := pl.GetNames() wantNames := []string{"http", "http-alt"} if !reflect.DeepEqual(gotNames, wantNames) { t.Errorf("GetNames() failed: got %v want %v", gotNames, wantNames) } cases := []struct { name string port *model.Port found bool }{ {name: pl[0].Name, port: pl[0], found: true},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 20 12:54:10 UTC 2023 - 19K bytes - Viewed (0) -
pkg/kube/util_test.go
name string jobName string wantTypeMetadata metav1.TypeMeta wantName types.NamespacedName }{ { name: "cron-job-name-sec", jobName: "sec-1234567890", wantTypeMetadata: metav1.TypeMeta{ Kind: "CronJob", APIVersion: "batch/v1", }, wantName: types.NamespacedName{ Name: "sec", }, }, { name: "cron-job-name-min",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 04:16:49 UTC 2024 - 10.8K bytes - Viewed (0) -
src/time/zoneinfo_test.go
fileName string date func(*time.Location) time.Time wantName string wantOffset int }{ { // 2020b slim tzdata for Europe/Berlin. zoneName: "Europe/Berlin", fileName: "2020b_Europe_Berlin", date: func(loc *time.Location) time.Time { return time.Date(2020, time.October, 29, 15, 30, 0, 0, loc) }, wantName: "CET", wantOffset: 3600, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 13 17:06:56 UTC 2023 - 9.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
!strings.Contains(test.input, "<>") wantName := "" if isFuncSym { // Strip $|* and (SB) and +Int. wantName = test.output[:len(test.output)-4] if strings.HasPrefix(wantName, "$") || strings.HasPrefix(wantName, "*") { wantName = wantName[1:] } if i := strings.Index(wantName, "+"); i >= 0 { wantName = wantName[:i] } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 23.9K bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
func checkMetaNamesEmitted(t *testing.T, data format.Data, category string, want []string) { t.Helper() names := metaEventNameArgs(category, data) for _, wantName := range want { if !slices.Contains(names, wantName) { t.Errorf("%s: names=%v, want %q", category, names, wantName) } } } func metaEventNameArgs(category string, data format.Data) (names []string) { for _, e := range data.Events {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
operator/pkg/object/objects_test.go
t.Errorf("ParseJsonToK8sObject(%s): got kind %s for k8s object %s, want %s", tt.desc, k8sObj.Kind, k8sObjStr, tt.wantKind) } if k8sObj.Name != tt.wantName { t.Errorf("ParseJsonToK8sObject(%s): got name %s for k8s object %s, want %s", tt.desc, k8sObj.Name, k8sObjStr, tt.wantName) } if k8sObj.Namespace != tt.wantNamespace {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 18.4K bytes - Viewed (0)