Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InitFakeCmd (0.14 sec)

  1. cmd/kubeadm/app/preflight/utils_test.go

    				},
    			}
    			fexec := &fakeexec.FakeExec{
    				CommandScript: []fakeexec.FakeCommandAction{
    					func(cmd string, args ...string) utilsexec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) },
    				},
    			}
    			ver, err := GetKubeletVersion(fexec)
    			switch {
    			case err != nil && tc.valid:
    				t.Errorf("GetKubeletVersion: unexpected error for %q. Error: %v", tc.output, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 23 11:33:44 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. pkg/proxy/conntrack/conntrack_test.go

    		CombinedOutputScript: []fakeexec.FakeAction{result},
    	}
    	fexec := &fakeexec.FakeExec{
    		CommandScript: []fakeexec.FakeCommandAction{
    			func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(fcmd, cmd, args...) },
    		},
    		LookPathFunc: func(cmd string) (string, error) { return cmd, nil },
    	}
    
    	return &testCT{execCT{fexec}, fcmd}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:08:36 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top