Skip to content

Commit 443b539

Browse files
committed
Optimize imports
1 parent 202a447 commit 443b539

39 files changed

+93
-54
lines changed

core/action/action_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package action_test
22

33
import (
4-
"github.com/SpectoLabs/hoverfly/core/journal"
5-
"github.com/gorilla/mux"
64
"net/http"
75
"net/http/httptest"
86
"testing"
97

8+
"github.com/SpectoLabs/hoverfly/core/journal"
9+
"github.com/gorilla/mux"
10+
1011
"github.com/SpectoLabs/hoverfly/core/action"
1112
"github.com/SpectoLabs/hoverfly/core/models"
1213
. "github.com/onsi/gomega"

core/benchmark_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import (
44
"bytes"
55
"encoding/json"
66
"fmt"
7-
"github.com/SpectoLabs/hoverfly/core/handlers/v2"
8-
. "github.com/onsi/gomega"
97
"net/http"
108
"os"
119
"testing"
1210
"time"
11+
12+
"github.com/SpectoLabs/hoverfly/core/handlers/v2"
13+
. "github.com/onsi/gomega"
1314
)
1415

1516
func BenchmarkPutSimulationAPI(b *testing.B) {

core/cors/cors_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package cors
22

33
import (
4-
. "github.com/onsi/gomega"
54
"io"
65
"net/http"
76
"testing"
7+
8+
. "github.com/onsi/gomega"
89
)
910

1011
func Test_InterceptPreflightRequest_ReturnSuccessResponseWithDefaultHeaders(t *testing.T) {

core/delay/log_normal_generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package delay
22

33
import (
44
"errors"
5-
"gonum.org/v1/gonum/stat/distuv"
65
"math"
6+
7+
"gonum.org/v1/gonum/stat/distuv"
78
)
89

910
func ValidateLogNormalDelayOptions(min int, max int, mean int, median int) error {

core/handlers/v2/hoverfly_journalindex_handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package v2
22

33
import (
44
"encoding/json"
5+
"net/http"
6+
57
"github.com/SpectoLabs/hoverfly/core/handlers"
68
"github.com/codegangsta/negroni"
79
"github.com/go-zoo/bone"
8-
"net/http"
910
)
1011

1112
type HoverflyJournalIndex interface {

core/handlers/v2/hoverfly_journalindex_handler_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package v2
33
import (
44
"bytes"
55
"encoding/json"
6-
. "github.com/onsi/gomega"
76
"io"
87
"net/http"
98
"testing"
9+
10+
. "github.com/onsi/gomega"
1011
)
1112

1213
type HoverflyJournalIndexStub struct{}

core/handlers/v2/hoverfly_templatedatasource_handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package v2
22

33
import (
44
"encoding/json"
5+
"net/http"
6+
57
"github.com/SpectoLabs/hoverfly/core/handlers"
68
"github.com/codegangsta/negroni"
79
"github.com/go-zoo/bone"
8-
"net/http"
910
)
1011

1112
type HoverflyTemplateDataSource interface {

core/handlers/v2/journal_handler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import (
44
"encoding/json"
55
"net/http"
66

7+
"strconv"
8+
"time"
9+
710
"github.com/SpectoLabs/hoverfly/core/handlers"
811
"github.com/SpectoLabs/hoverfly/core/util"
912
"github.com/codegangsta/negroni"
1013
"github.com/go-zoo/bone"
11-
"strconv"
12-
"time"
1314
)
1415

1516
const DefaultJournalLimit = 25

core/handlers/v2/testutils.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package v2
33
import (
44
"bytes"
55
"encoding/json"
6-
"github.com/SpectoLabs/hoverfly/core/handlers"
7-
"github.com/codegangsta/negroni"
86
"io"
97
"net/http"
108
"net/http/httptest"
9+
10+
"github.com/SpectoLabs/hoverfly/core/handlers"
11+
"github.com/codegangsta/negroni"
1112
)
1213

1314
func makeRequestOnHandler(handlerFunc negroni.HandlerFunc, request *http.Request) *httptest.ResponseRecorder {

core/hoverfly_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package hoverfly
33
import (
44
"errors"
55
"fmt"
6-
"github.com/SpectoLabs/hoverfly/core/templating"
76
"regexp"
87
"sort"
98

9+
"github.com/SpectoLabs/hoverfly/core/templating"
10+
1011
"github.com/SpectoLabs/hoverfly/core/action"
1112
"github.com/SpectoLabs/hoverfly/core/delay"
1213

0 commit comments

Comments
 (0)