1// +build windows 2 3package environment 4 5import ( 6 "testing" 7 8 "github.com/stretchr/testify/assert" 9) 10 11func TestMergeEnvironmentsWindows(t *testing.T) { 12 cases := []struct { 13 name string 14 env1 []string 15 env2 []string 16 env3 []string 17 expected []string 18 }{ 19 { 20 name: "mixed case", 21 env1: []string{"VAR1=VALUE1"}, 22 env2: []string{"VAR2=VALUE2"}, 23 env3: []string{"Var1=VALUE3", "Var2=VALUE4"}, 24 expected: []string{"VAR1=VALUE3", "VAR2=VALUE4"}, 25 }, 26 } 27 28 for _, tt := range cases { 29 t.Run(tt.name, func(t *testing.T) { 30 result := MergeEnvironments(tt.env1, tt.env2, tt.env3) 31 assert.ElementsMatch(t, result, tt.expected) 32 }) 33 } 34} 35