Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gotoNode (0.24 sec)

  1. src/net/http/routing_tree_test.go

    }
    
    func TestRoutingNodeMatch(t *testing.T) {
    
    	test := func(tree *routingNode, tests []testCase) {
    		t.Helper()
    		for _, test := range tests {
    			gotNode, gotMatches := tree.match(test.host, test.method, test.path)
    			got := ""
    			if gotNode != nil {
    				got = gotNode.pattern.String()
    			}
    			if got != test.wantPat {
    				t.Errorf("%s, %s, %s: got %q, want %q", test.host, test.method, test.path, got, test.wantPat)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    		MemoryCapacity: 1024,
    	}
    	kubelet.setCachedMachineInfo(machineInfo)
    
    	var gotNode runtime.Object
    	kubeClient.AddReactor("create", "nodes", func(action core.Action) (bool, runtime.Object, error) {
    		createAction := action.(core.CreateAction)
    		gotNode = createAction.GetObject()
    		return true, gotNode, nil
    	})
    
    	addNotImplatedReaction(kubeClient)
    
    	// Make node to be unschedulable.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
Back to top