diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-02-18 23:25:43 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-04-18 15:23:49 -0400 |
| commit | 0ff06aa75c6a3062852f08c0ae73751530ede6c3 (patch) | |
| tree | 01002e4c015ee950f3b63c6584ebb8462eaf9b87 /context_test.go | |
| parent | cd60ef2d97a45135f3b4127ea0038db5a4ffe847 (diff) | |
Putting main pkg in cmd subdirectory
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'context_test.go')
| -rw-r--r-- | context_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/context_test.go b/context_test.go index b4a60ff3..16492e9a 100644 --- a/context_test.go +++ b/context_test.go @@ -1,4 +1,4 @@ -package main +package gomplate import ( "os" @@ -8,13 +8,13 @@ import ( ) func TestEnvMapifiesEnvironment(t *testing.T) { - c := &Context{} + c := &context{} env := c.Env() assert.Equal(t, env["USER"], os.Getenv("USER")) } func TestEnvGetsUpdatedEnvironment(t *testing.T) { - c := &Context{} + c := &context{} assert.Empty(t, c.Env()["FOO"]) assert.NoError(t, os.Setenv("FOO", "foo")) assert.Equal(t, c.Env()["FOO"], "foo") |
