Skip to content

Commit

Permalink
test: add tests for env_unix.go (#211)
Browse files Browse the repository at this point in the history
* 3 test cases added.

Signed-off-by: GitHub <gozeloglu@gmail.com>
  • Loading branch information
gozeloglu committed Jan 13, 2022
1 parent ab39487 commit 92ee88e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions env_unix_test.go
@@ -0,0 +1,13 @@
package env

import "testing"

func TestUnix(t *testing.T) {
envVars := []string{":=/test/unix", "PATH=:/test_val1:/test_val2", "VAR=REGULARVAR"}
result := toMap(envVars)
isEqual(t, map[string]string{
":": "/test/unix",
"PATH": ":/test_val1:/test_val2",
"VAR": "REGULARVAR",
}, result)
}

0 comments on commit 92ee88e

Please sign in to comment.