diff options
author | Wolfy-J <[email protected]> | 2018-09-10 14:29:10 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-10 14:29:10 +0300 |
commit | 7ab1e77f2db902cf8a485e3a28bfdbd58a613dc9 (patch) | |
tree | 748253cb7d5b758a0b61ab4a88023e5fed4f4a3b /service/env | |
parent | ceb5033d5bb2fb641c886d4010f05498552152c2 (diff) |
go fmt
Diffstat (limited to 'service/env')
-rw-r--r-- | service/env/environment.go | 2 | ||||
-rw-r--r-- | service/env/service_test.go | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/service/env/environment.go b/service/env/environment.go index d095009c..8e89d2c8 100644 --- a/service/env/environment.go +++ b/service/env/environment.go @@ -8,4 +8,4 @@ type Environment interface { // SetEnv sets or creates environment value. SetEnv(key, value string) -}
\ No newline at end of file +} diff --git a/service/env/service_test.go b/service/env/service_test.go index 10159857..5b148207 100644 --- a/service/env/service_test.go +++ b/service/env/service_test.go @@ -23,15 +23,14 @@ func Test_Extend(t *testing.T) { assert.Equal(t, "value", values["key"]) } - func Test_Set(t *testing.T) { s := NewService(map[string]string{"rr": "version"}) s.Init(&Config{Values: map[string]string{"key": "value"}}) assert.Len(t, s.values, 2) - s.SetEnv("key","value-new") - s.SetEnv("other","new") + s.SetEnv("key", "value-new") + s.SetEnv("other", "new") values, err := s.GetEnv() assert.NoError(t, err) @@ -39,4 +38,4 @@ func Test_Set(t *testing.T) { assert.Equal(t, "version", values["rr"]) assert.Equal(t, "value-new", values["key"]) assert.Equal(t, "new", values["other"]) -}
\ No newline at end of file +} |