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

Function TestAddStackLabel

cli/compose/convert/compose_test.go:31–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func TestAddStackLabel(t *testing.T) {
32 labels := map[string]string{
33 "something": "labeled",
34 }
35 actual := addStackLabel(Namespace{name: "foo"}, labels)
36 expected := map[string]string{
37 "something": "labeled",
38 LabelNamespace: "foo",
39 }
40 assert.Check(t, is.DeepEqual(expected, actual))
41}
42
43func TestNetworks(t *testing.T) {
44 namespace := Namespace{name: "foo"}

Callers

nothing calls this directly

Calls 1

addStackLabelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…