diff options
author | Wolfy-J <[email protected]> | 2018-06-14 22:56:19 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-14 22:56:19 +0300 |
commit | 082c329d9dc84453a02693119d954f60a4792b11 (patch) | |
tree | a2e2279576c84a157c278869ee84d9f8f42b7c20 /service/static | |
parent | 5fef5b06e6261bc7c133380ef8b5bc8e63ac9fbe (diff) |
fmt
Diffstat (limited to 'service/static')
-rw-r--r-- | service/static/config.go | 6 | ||||
-rw-r--r-- | service/static/config_test.go | 2 | ||||
-rw-r--r-- | service/static/service.go | 4 | ||||
-rw-r--r-- | service/static/service_test.go | 16 |
4 files changed, 13 insertions, 15 deletions
diff --git a/service/static/config.go b/service/static/config.go index 2a1f6c13..d55fcd66 100644 --- a/service/static/config.go +++ b/service/static/config.go @@ -1,10 +1,10 @@ package static import ( - "strings" - "path" - "os" "github.com/pkg/errors" + "os" + "path" + "strings" ) // Config describes file location and controls access to them. diff --git a/service/static/config_test.go b/service/static/config_test.go index ce31348a..d2099cdf 100644 --- a/service/static/config_test.go +++ b/service/static/config_test.go @@ -1,8 +1,8 @@ package static import ( - "testing" "github.com/stretchr/testify/assert" + "testing" ) func TestConfig_Forbids(t *testing.T) { diff --git a/service/static/service.go b/service/static/service.go index 43891aa8..545c96bf 100644 --- a/service/static/service.go +++ b/service/static/service.go @@ -1,11 +1,11 @@ package static import ( + "github.com/spiral/roadrunner/service" + rrttp "github.com/spiral/roadrunner/service/http" "net/http" "path" "strings" - rrttp "github.com/spiral/roadrunner/service/http" - "github.com/spiral/roadrunner/service" ) // ID contains default service name. diff --git a/service/static/service_test.go b/service/static/service_test.go index f0cb1bea..842e5e0b 100644 --- a/service/static/service_test.go +++ b/service/static/service_test.go @@ -1,19 +1,19 @@ package static import ( - "testing" - "github.com/sirupsen/logrus/hooks/test" + "bytes" + "encoding/json" "github.com/sirupsen/logrus" + "github.com/sirupsen/logrus/hooks/test" "github.com/spiral/roadrunner/service" - "github.com/stretchr/testify/assert" - "time" rrhttp "github.com/spiral/roadrunner/service/http" - "encoding/json" + "github.com/stretchr/testify/assert" + "io" "io/ioutil" "net/http" "os" - "bytes" - "io" + "testing" + "time" ) type testCfg struct { @@ -84,7 +84,6 @@ func Test_Files(t *testing.T) { assert.Equal(t, "sample", b) } - func Test_Files_Disable(t *testing.T) { logger, _ := test.NewNullLogger() logger.SetLevel(logrus.DebugLevel) @@ -256,7 +255,6 @@ func Test_Files_NotFound(t *testing.T) { assert.Equal(t, "WORLD", b) } - func Test_Files_Dir(t *testing.T) { logger, _ := test.NewNullLogger() logger.SetLevel(logrus.DebugLevel) |