MCPcopy Create free account
hub / github.com/docker/cli / TestServiceConvertsIsolation

Function TestServiceConvertsIsolation

cli/compose/convert/service_test.go:511–518  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

509}
510
511func TestServiceConvertsIsolation(t *testing.T) {
512 src := composetypes.ServiceConfig{
513 Isolation: "hyperv",
514 }
515 result, err := Service(Namespace{name: "foo"}, src, nil, nil, nil, nil)
516 assert.NilError(t, err)
517 assert.Check(t, is.Equal(container.IsolationHyperV, result.TaskTemplate.ContainerSpec.Isolation))
518}
519
520func TestConvertServiceSecrets(t *testing.T) {
521 namespace := Namespace{name: "foo"}

Callers

nothing calls this directly

Calls 1

ServiceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…