MCPcopy Index your code
hub / github.com/docker/cli / TestParseRestartPolicyAutoRemove

Function TestParseRestartPolicyAutoRemove

cli/command/container/opts_test.go:882–886  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

880}
881
882func TestParseRestartPolicyAutoRemove(t *testing.T) {
883 _, _, _, err := parseRun([]string{"--rm", "--restart=always", "img", "cmd"}) //nolint:dogsled
884 const expected = "conflicting options: cannot specify both --restart and --rm"
885 assert.Check(t, is.Error(err, expected))
886}
887
888func TestParseHealth(t *testing.T) {
889 checkOk := func(args ...string) *container.HealthConfig {

Callers

nothing calls this directly

Calls 2

parseRunFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…