MCPcopy Create free account
hub / github.com/compose-spec/compose-go / TestEnvMap

Function TestEnvMap

cli/options_test.go:336–343  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

334}
335
336func TestEnvMap(t *testing.T) {
337 m := map[string]string{}
338 m["foo"] = "bar"
339 l := utils.GetAsStringList(m)
340 assert.Equal(t, l[0], "foo=bar")
341 m = utils.GetAsEqualsMap(l)
342 assert.Equal(t, m["foo"], "bar")
343}
344
345func TestEnvVariablePrecedence(t *testing.T) {
346 testcases := []struct {

Callers

nothing calls this directly

Calls 2

GetAsStringListFunction · 0.92
GetAsEqualsMapFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…