reg/vendor/github.com/docker/docker-ce/components/engine/libcontainerd/utils_windows_test.go
Jess Frazelle ab6c553e6b
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:41:43 -05:00

13 lines
401 B
Go

package libcontainerd // import "github.com/docker/docker/libcontainerd"
import (
"testing"
)
func TestEnvironmentParsing(t *testing.T) {
env := []string{"foo=bar", "car=hat", "a=b=c"}
result := setupEnvironmentVariables(env)
if len(result) != 3 || result["foo"] != "bar" || result["car"] != "hat" || result["a"] != "b=c" {
t.Fatalf("Expected map[foo:bar car:hat a:b=c], got %v", result)
}
}