MCPcopy Index your code
hub / github.com/moby/moby / TestValidateContainerIsolation

Function TestValidateContainerIsolation

daemon/daemon_test.go:296–301  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

294}
295
296func TestValidateContainerIsolation(t *testing.T) {
297 d := Daemon{}
298
299 _, err := d.verifyContainerSettings(&configStore{}, &containertypes.HostConfig{Isolation: containertypes.Isolation("invalid")}, nil, false)
300 assert.Check(t, is.Error(err, "invalid isolation 'invalid' on "+runtime.GOOS))
301}
302
303func TestInvalidContainerPort0(t *testing.T) {
304 d := Daemon{}

Callers

nothing calls this directly

Calls 3

CheckMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…