summaryrefslogtreecommitdiff
path: root/service/env/service_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-10 15:11:55 +0300
committerWolfy-J <[email protected]>2018-09-10 15:11:55 +0300
commit5dcbd1fd465956ee377c67f3b5d5a17701af235a (patch)
tree92a649424717478487e0d9f5a51da8b6584456c0 /service/env/service_test.go
parent6f70e31df4a88b85e576789ebe4fee6b5fc12d86 (diff)
more tests
Diffstat (limited to 'service/env/service_test.go')
-rw-r--r--service/env/service_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/service/env/service_test.go b/service/env/service_test.go
index 5b148207..28e0d15b 100644
--- a/service/env/service_test.go
+++ b/service/env/service_test.go
@@ -10,6 +10,16 @@ func Test_NewService(t *testing.T) {
assert.Len(t, s.values, 1)
}
+func Test_Init(t *testing.T) {
+ s := &Service{}
+ s.Init(&Config{})
+ assert.Len(t, s.values, 1)
+
+ values, err := s.GetEnv()
+ assert.NoError(t, err)
+ assert.Equal(t, "yes", values["rr"])
+}
+
func Test_Extend(t *testing.T) {
s := NewService(map[string]string{"rr": "version"})