From 95f16994fa867d1024525f6cc4cf61cf72ff4df4 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman Date: Thu, 31 Jan 2019 08:18:11 -0600 Subject: [PATCH] Apply goimports to statediff --- statediff/builder/builder_test.go | 7 ++++--- statediff/config_test.go | 3 ++- statediff/extractor/extractor_test.go | 9 +++++---- statediff/publisher/csv.go | 5 +++-- statediff/publisher/publisher_test.go | 11 ++++++----- statediff/service/service_test.go | 9 +++++---- statediff/testhelpers/test_data.go | 5 +++-- 7 files changed, 28 insertions(+), 21 deletions(-) diff --git a/statediff/builder/builder_test.go b/statediff/builder/builder_test.go index 6354a13e2..95163100b 100644 --- a/statediff/builder/builder_test.go +++ b/statediff/builder/builder_test.go @@ -2,6 +2,10 @@ package builder_test import ( "bytes" + "math/big" + "reflect" + "testing" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/consensus/ethash" "github.com/ethereum/go-ethereum/core" @@ -10,9 +14,6 @@ import ( "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/params" b "github.com/ethereum/go-ethereum/statediff/builder" - "math/big" - "reflect" - "testing" ) var ( diff --git a/statediff/config_test.go b/statediff/config_test.go index 82f2d3a92..5246d1cd1 100644 --- a/statediff/config_test.go +++ b/statediff/config_test.go @@ -1,9 +1,10 @@ package statediff_test import ( + "testing" + "github.com/ethereum/go-ethereum/statediff" "github.com/ethereum/go-ethereum/statediff/testhelpers" - "testing" ) func TestNewMode(t *testing.T) { diff --git a/statediff/extractor/extractor_test.go b/statediff/extractor/extractor_test.go index b75ea60b0..0ed036c12 100644 --- a/statediff/extractor/extractor_test.go +++ b/statediff/extractor/extractor_test.go @@ -2,14 +2,15 @@ package extractor_test import ( "bytes" - "github.com/ethereum/go-ethereum/core/types" - b "github.com/ethereum/go-ethereum/statediff/builder" - e "github.com/ethereum/go-ethereum/statediff/extractor" - "github.com/ethereum/go-ethereum/statediff/testhelpers/mocks" "math/big" "math/rand" "reflect" "testing" + + "github.com/ethereum/go-ethereum/core/types" + b "github.com/ethereum/go-ethereum/statediff/builder" + e "github.com/ethereum/go-ethereum/statediff/extractor" + "github.com/ethereum/go-ethereum/statediff/testhelpers/mocks" ) var publisher mocks.Publisher diff --git a/statediff/publisher/csv.go b/statediff/publisher/csv.go index 8be88ed7f..ce405ac14 100644 --- a/statediff/publisher/csv.go +++ b/statediff/publisher/csv.go @@ -2,12 +2,13 @@ package publisher import ( "encoding/csv" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/statediff/builder" "os" "path/filepath" "strconv" "time" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/statediff/builder" ) var ( diff --git a/statediff/publisher/publisher_test.go b/statediff/publisher/publisher_test.go index 4319b7bd7..8a26fb4e2 100644 --- a/statediff/publisher/publisher_test.go +++ b/statediff/publisher/publisher_test.go @@ -3,11 +3,6 @@ package publisher_test import ( "bytes" "encoding/csv" - "github.com/ethereum/go-ethereum/statediff" - "github.com/ethereum/go-ethereum/statediff/builder" - p "github.com/ethereum/go-ethereum/statediff/publisher" - "github.com/ethereum/go-ethereum/statediff/testhelpers" - "github.com/pkg/errors" "io/ioutil" "os" "path/filepath" @@ -15,6 +10,12 @@ import ( "strconv" "strings" "testing" + + "github.com/ethereum/go-ethereum/statediff" + "github.com/ethereum/go-ethereum/statediff/builder" + p "github.com/ethereum/go-ethereum/statediff/publisher" + "github.com/ethereum/go-ethereum/statediff/testhelpers" + "github.com/pkg/errors" ) var ( diff --git a/statediff/service/service_test.go b/statediff/service/service_test.go index 0025239af..15b4bc1b2 100644 --- a/statediff/service/service_test.go +++ b/statediff/service/service_test.go @@ -1,15 +1,16 @@ package service_test import ( + "math/big" + "math/rand" + "reflect" + "testing" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" service2 "github.com/ethereum/go-ethereum/statediff/service" "github.com/ethereum/go-ethereum/statediff/testhelpers/mocks" - "math/big" - "math/rand" - "reflect" - "testing" ) func TestServiceLoop(t *testing.T) { diff --git a/statediff/testhelpers/test_data.go b/statediff/testhelpers/test_data.go index 34194d2f4..a24f32c15 100644 --- a/statediff/testhelpers/test_data.go +++ b/statediff/testhelpers/test_data.go @@ -1,10 +1,11 @@ package testhelpers import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/statediff/builder" "math/big" "math/rand" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/statediff/builder" ) var (