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

Function TestConvertEnvironment

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

Source from the content-addressed store, hash-verified

71}
72
73func TestConvertEnvironment(t *testing.T) {
74 source := map[string]*string{
75 "foo": strPtr("bar"),
76 "key": strPtr("value"),
77 }
78 env := convertEnvironment(source)
79 assert.Check(t, is.DeepEqual([]string{"foo=bar", "key=value"}, env))
80}
81
82func TestConvertEnvironmentWhenNilValueExists(t *testing.T) {
83 source := map[string]*string{

Callers

nothing calls this directly

Calls 2

convertEnvironmentFunction · 0.85
strPtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…