github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/libcontainerd/local/utils_windows_test.go (about) 1 package local // import "github.com/demonoid81/moby/libcontainerd/local" 2 3 import ( 4 "testing" 5 ) 6 7 func TestEnvironmentParsing(t *testing.T) { 8 env := []string{"foo=bar", "car=hat", "a=b=c"} 9 result := setupEnvironmentVariables(env) 10 if len(result) != 3 || result["foo"] != "bar" || result["car"] != "hat" || result["a"] != "b=c" { 11 t.Fatalf("Expected map[foo:bar car:hat a:b=c], got %v", result) 12 } 13 }