From ed38925489e190660a6ff439bb659c76d66b642c Mon Sep 17 00:00:00 2001 From: konrad Date: Tue, 16 Jan 2018 11:55:12 +0100 Subject: [PATCH] Fixed lint + gofmt --- models/main_test.go | 2 +- models/unit_tests.go | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/models/main_test.go b/models/main_test.go index b5a71ab..f75ab00 100644 --- a/models/main_test.go +++ b/models/main_test.go @@ -4,4 +4,4 @@ import "testing" func TestMain(m *testing.M) { MainTest(m, "..") -} \ No newline at end of file +} diff --git a/models/unit_tests.go b/models/unit_tests.go index aaca690..a6cdb1f 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -1,15 +1,16 @@ package models import ( - "github.com/go-xorm/xorm" - "github.com/go-xorm/core" - "os" - "gopkg.in/testfixtures.v2" - "testing" - "path/filepath" "fmt" + "github.com/go-xorm/core" + "github.com/go-xorm/xorm" + "gopkg.in/testfixtures.v2" + "os" + "path/filepath" + "testing" ) +// MainTest creates the test engine func MainTest(m *testing.M, pathToRoot string) { var err error fixturesDir := filepath.Join(pathToRoot, "models") @@ -52,4 +53,4 @@ func createTestEngine(fixturesDir string) error { // PrepareTestDatabase load test fixtures into test database func PrepareTestDatabase() error { return LoadFixtures() -} \ No newline at end of file +}