diff options
author | Wolfy-J <[email protected]> | 2018-07-26 17:34:01 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-26 17:34:01 +0300 |
commit | a2c1861165c9f61f8ece133f2edecb9aadfabe26 (patch) | |
tree | fcd055b054d57efcb7a8289724e334460169a25f /service/env | |
parent | 2f73d679b884616c49f4eba3342b350c001d949f (diff) |
more tests
Diffstat (limited to 'service/env')
-rw-r--r-- | service/env/config.go | 2 | ||||
-rw-r--r-- | service/env/config_test.go | 6 | ||||
-rw-r--r-- | service/env/service_test.go | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/service/env/config.go b/service/env/config.go index ad7eddf5..d0ba686b 100644 --- a/service/env/config.go +++ b/service/env/config.go @@ -13,4 +13,4 @@ type Config struct { // Hydrate must populate Config values using given Config source. Must return error if Config is not valid. func (c *Config) Hydrate(cfg service.Config) error { return cfg.Unmarshal(&c.Values) -}
\ No newline at end of file +} diff --git a/service/env/config_test.go b/service/env/config_test.go index 3c943963..3ae2afbc 100644 --- a/service/env/config_test.go +++ b/service/env/config_test.go @@ -1,10 +1,10 @@ package env import ( - "github.com/spiral/roadrunner/service" "encoding/json" - "testing" + "github.com/spiral/roadrunner/service" "github.com/stretchr/testify/assert" + "testing" ) type mockCfg struct{ cfg string } @@ -26,4 +26,4 @@ func Test_Config_Hydrate_Empty(t *testing.T) { assert.NoError(t, c.Hydrate(cfg)) assert.Len(t, c.Values, 0) -}
\ No newline at end of file +} diff --git a/service/env/service_test.go b/service/env/service_test.go index 4d823468..f25e56c7 100644 --- a/service/env/service_test.go +++ b/service/env/service_test.go @@ -1,8 +1,8 @@ package env import ( - "testing" "github.com/stretchr/testify/assert" + "testing" ) func Test_NewService(t *testing.T) { |