utils_windows_test.go 350 B

12345678910111213
  1. package libcontainerd
  2. import (
  3. "testing"
  4. )
  5. func TestEnvironmentParsing(t *testing.T) {
  6. env := []string{"foo=bar", "car=hat", "a=b=c"}
  7. result := setupEnvironmentVariables(env)
  8. if len(result) != 3 || result["foo"] != "bar" || result["car"] != "hat" || result["a"] != "b=c" {
  9. t.Fatalf("Expected map[foo:bar car:hat a:b=c], got %v", result)
  10. }
  11. }