Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for wantNames (0.39 sec)

  1. 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)
  2. 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)
  3. src/crypto/x509/root_unix_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	gotNames := []string{}
    	for _, fi := range got {
    		gotNames = append(gotNames, fi.Name())
    	}
    	wantNames := []string{"file", "link-out"}
    	if !reflect.DeepEqual(gotNames, wantNames) {
    		t.Errorf("got %q; want %q", gotNames, wantNames)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. 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)
Back to top