MCPcopy
hub / github.com/docker/compose / RunDockerOrExitError

Method RunDockerOrExitError

pkg/e2e/framework.go:324–328  ·  pkg/e2e/framework.go::CLI.RunDockerOrExitError

RunDockerOrExitError runs a docker command and returns a result

(t testing.TB, args ...string)

Source from the content-addressed store, hash-verified

322
323// RunDockerOrExitError runs a docker command and returns a result
324func (c *CLI) RunDockerOrExitError(t testing.TB, args ...string) *icmd.Result {
325 t.Helper()
326 t.Logf("\t[%s] docker %s\n", t.Name(), strings.Join(args, " "))
327 return icmd.RunCmd(c.NewDockerCmd(t, args...))
328}
329
330// RunCmd runs a command, expects no error and returns a result
331func (c *CLI) RunCmd(t testing.TB, args ...string) *icmd.Result {

Callers 15

RunDockerCmdMethod · 0.95
TestLocalComposeBuildFunction · 0.95
TestEnvPriorityFunction · 0.80
TestCommentsInEnvFileFunction · 0.80
TestCopyFunction · 0.80
TestLocalComposeVolumeFunction · 0.80
TestProjectVolumeBindFunction · 0.80

Calls 3

NewDockerCmdMethod · 0.95
RunCmdMethod · 0.80
NameMethod · 0.45

Tested by 15

TestLocalComposeBuildFunction · 0.76
TestEnvPriorityFunction · 0.64
TestCommentsInEnvFileFunction · 0.64
TestCopyFunction · 0.64
TestLocalComposeVolumeFunction · 0.64
TestProjectVolumeBindFunction · 0.64
TestIPAMConfigFunction · 0.64