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

Method RunDockerCmd

pkg/e2e/framework.go:353–358  ·  pkg/e2e/framework.go::CLI.RunDockerCmd

RunDockerCmd runs a docker command, expects no error and returns a result

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

Source from the content-addressed store, hash-verified

351
352// RunDockerCmd runs a docker command, expects no error and returns a result
353func (c *CLI) RunDockerCmd(t testing.TB, args ...string) *icmd.Result {
354 t.Helper()
355 res := c.RunDockerOrExitError(t, args...)
356 res.Assert(t, icmd.Success)
357 return res
358}
359
360// RunDockerComposeCmd runs a docker compose command, expects no error and returns a result
361func (c *CLI) RunDockerComposeCmd(t testing.TB, args ...string) *icmd.Result {

Callers 15

TestLocalComposeUpFunction · 0.95
TestCompatibilityFunction · 0.95
TestLoggingDriverFunction · 0.95
TestUpImageIDFunction · 0.95
TestUpSwitchVolumesFunction · 0.95
TestUpRecreateVolumesFunction · 0.95
TestImageVolumeFunction · 0.95
TestNetworksFunction · 0.95
TestMacAddressFunction · 0.95
TestInterfaceNameFunction · 0.95

Calls 1

RunDockerOrExitErrorMethod · 0.95

Tested by 15

TestLocalComposeUpFunction · 0.76
TestCompatibilityFunction · 0.76
TestLoggingDriverFunction · 0.76
TestUpImageIDFunction · 0.76
TestUpSwitchVolumesFunction · 0.76
TestUpRecreateVolumesFunction · 0.76
TestImageVolumeFunction · 0.76
TestNetworksFunction · 0.76
TestMacAddressFunction · 0.76
TestInterfaceNameFunction · 0.76