NewDockerCmd creates a docker cmd without running it
(t testing.TB, args ...string)
| 311 | |
| 312 | // NewDockerCmd creates a docker cmd without running it |
| 313 | func (c *CLI) NewDockerCmd(t testing.TB, args ...string) icmd.Cmd { |
| 314 | t.Helper() |
| 315 | for _, arg := range args { |
| 316 | if arg == compose.PluginName { |
| 317 | t.Fatal("This test called 'RunDockerCmd' for 'compose'. Please prefer 'RunDockerComposeCmd' to be able to test as a plugin and standalone") |
| 318 | } |
| 319 | } |
| 320 | return c.NewCmd(DockerExecutableName, args...) |
| 321 | } |
| 322 | |
| 323 | // RunDockerOrExitError runs a docker command and returns a result |
| 324 | func (c *CLI) RunDockerOrExitError(t testing.TB, args ...string) *icmd.Result { |
no test coverage detected