From 6da4e47c603118921da07acdd9ca7593aadbbe97 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 19 Jul 2019 23:37:51 +0200 Subject: [PATCH] Format code with goimports Fixed formatting and import order. --- http/test_round_tripper.go | 3 ++- package_test.go | 3 ++- suite/suite.go | 2 +- suite/suite_test.go | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/http/test_round_tripper.go b/http/test_round_tripper.go index b1e32f1d8..11a024ec3 100644 --- a/http/test_round_tripper.go +++ b/http/test_round_tripper.go @@ -1,8 +1,9 @@ package http import ( - "github.com/stretchr/testify/mock" "net/http" + + "github.com/stretchr/testify/mock" ) // TestRoundTripper DEPRECATED USE net/http/httptest diff --git a/package_test.go b/package_test.go index 7ac5d6d8e..f17ff153e 100644 --- a/package_test.go +++ b/package_test.go @@ -1,8 +1,9 @@ package testify import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestImports(t *testing.T) { diff --git a/suite/suite.go b/suite/suite.go index d708d7d75..17df20fe5 100644 --- a/suite/suite.go +++ b/suite/suite.go @@ -84,7 +84,7 @@ func Run(t *testing.T, suite TestingSuite) { defer failOnPanic(t) suiteSetupDone := false - + methodFinder := reflect.TypeOf(suite) tests := []testing.InternalTest{} for index := 0; index < methodFinder.NumMethod(); index++ { diff --git a/suite/suite_test.go b/suite/suite_test.go index 26dddbd36..e08467d8c 100644 --- a/suite/suite_test.go +++ b/suite/suite_test.go @@ -350,7 +350,7 @@ func TestRunSuite(t *testing.T) { type SuiteSetupSkipTester struct { Suite - setUp bool + setUp bool toreDown bool }