Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for wantIdle (0.17 sec)

  1. src/cmd/vet/vet_test.go

    	}
    }
    
    // TestTags verifies that the -tags argument controls which files to check.
    func TestTags(t *testing.T) {
    	t.Parallel()
    	for tag, wantFile := range map[string]int{
    		"testtag":     1, // file1
    		"x testtag y": 1,
    		"othertag":    2,
    	} {
    		tag, wantFile := tag, wantFile
    		t.Run(tag, func(t *testing.T) {
    			t.Parallel()
    			t.Logf("-tags=%s", tag)
    			cmd := vetCmd(t, "-tags="+tag, "tagtest")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/builder/builder_test.go

    	for i, got := range gots {
    		gotYaml, err := protomarshal.ToYAML(got)
    		if err != nil {
    			t.Fatalf("failed to convert to YAML: %v", err)
    		}
    
    		wantFile := basePath + baseDir + wants[i]
    		util.RefreshGoldenFile(t, []byte(gotYaml), wantFile)
    		want := yamlConfig(t, wantFile, forTCP)
    		wantYaml, err := protomarshal.ToYAML(want)
    		if err != nil {
    			t.Fatalf("failed to convert to YAML: %v", err)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/log/slog/logger_test.go

    		t.Helper()
    		const wantFunc = "log/slog.TestCallDepth"
    		const wantFile = "logger_test.go"
    		wantLine := startLine + count*2
    		got := h.r.source()
    		gotFile := filepath.Base(got.File)
    		if got.Function != wantFunc || gotFile != wantFile || got.Line != wantLine {
    			t.Errorf("got (%s, %s, %d), want (%s, %s, %d)",
    				got.Function, gotFile, got.Line, wantFunc, wantFile, wantLine)
    		}
    	}
    
    	defer SetDefault(Default()) // restore
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  4. internal/grid/grid_test.go

    			},
    			OutCapacity: 1,
    			InCapacity:  1,
    		}))
    	}
    	register(local)
    	register(remote)
    	// Double remote DL
    	local.debugMsg(debugAddToDeadline, wantDL)
    	defer local.debugMsg(debugAddToDeadline, time.Duration(0))
    	remote.debugMsg(debugAddToDeadline, wantDL)
    	defer remote.debugMsg(debugAddToDeadline, time.Duration(0))
    
    	testHandler := func(t *testing.T, handler HandlerID) {
    		remoteConn := local.Connection(remoteHost)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top