Skip to content

Commit

Permalink
test: ToMap
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Aug 3, 2023
1 parent 92df8c4 commit 98a4b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion env_tomap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "testing"

func TestUnix(t *testing.T) {
envVars := []string{":=/test/unix", "PATH=:/test_val1:/test_val2", "VAR=REGULARVAR", "FOO=", "BAR"}
result := toMap(envVars)
result := ToMap(envVars)
isEqual(t, map[string]string{
":": "/test/unix",
"PATH": ":/test_val1:/test_val2",
Expand Down
2 changes: 1 addition & 1 deletion env_tomap_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "testing"
// See env_windows.go in the Go source: https://github.com/golang/go/blob/master/src/syscall/env_windows.go#L58
func TestToMapWindows(t *testing.T) {
envVars := []string{"=::=::\\", "=C:=C:\\test", "VAR=REGULARVAR", "FOO=", "BAR"}
result := toMap(envVars)
result := ToMap(envVars)
isEqual(t, map[string]string{
"=::": "::\\",
"=C:": "C:\\test",
Expand Down

0 comments on commit 98a4b16

Please sign in to comment.