github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/libcontainerd/utils_windows_test.go (about)

     1  package libcontainerd
     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  }