- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for fakeexec (0.38 sec)
-
pkg/proxy/conntrack/conntrack_test.go
} type testCT struct { execCT fcmd *fakeexec.FakeCmd } func makeCT(result fakeexec.FakeAction) *testCT { fcmd := &fakeexec.FakeCmd{ CombinedOutputScript: []fakeexec.FakeAction{result}, } fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(fcmd, cmd, args...) }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 18:08:36 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo_test.go
return []byte{}, nil, nil }) } } fcmd = fakeexec.FakeCmd{ CombinedOutputScript: fakeOutputs, } // Construct fake exec outputs from fcmd var fakeAction []fakeexec.FakeCommandAction for i := 0; i < len(expecteds); i++ { fakeAction = append(fakeAction, func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 08:26:26 UTC 2024 - 12K bytes - Viewed (0) -
pkg/volume/testing/volume_host.go
kubeClient clientset.Interface pluginMgr *VolumePluginMgr mounter mount.Interface hostUtil hostutil.HostUtils exec *testingexec.FakeExec nodeLabels map[string]string nodeName string subpather subpath.Interface node *v1.Node csiDriverLister storagelistersv1.CSIDriverLister
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 16.5K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks_test.go
t.Run(tc.kubeletVersion, func(t *testing.T) { fcmd := fakeexec.FakeCmd{ OutputScript: []fakeexec.FakeAction{ func() ([]byte, []byte, error) { return []byte("Kubernetes " + tc.kubeletVersion), nil, nil }, }, } fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 33.5K bytes - Viewed (0) -
pkg/volume/testing/testing.go
Output string // ReturnCode is the exit code for the command. Setting this to non-zero will // cause the command to return an error with this exit code set. ReturnCode int } // ScriptCommands configures fe, the FakeExec, to have a pre-configured list of // commands to expect. Calling more commands using fe than those scripted will // result in a panic. By default, the fe does not enforce command argument checking
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0)