Apply goimports to statediff

This commit is contained in:
Elizabeth Engelman 2019-01-31 08:18:11 -06:00 committed by Ian Norden
parent 3fe6dcdc4f
commit c38b566b25
7 changed files with 28 additions and 21 deletions

View File

@ -2,6 +2,10 @@ package builder_test
import ( import (
"bytes" "bytes"
"math/big"
"reflect"
"testing"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus/ethash" "github.com/ethereum/go-ethereum/consensus/ethash"
"github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core"
@ -10,9 +14,6 @@ import (
"github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/params"
b "github.com/ethereum/go-ethereum/statediff/builder" b "github.com/ethereum/go-ethereum/statediff/builder"
"math/big"
"reflect"
"testing"
) )
var ( var (

View File

@ -1,9 +1,10 @@
package statediff_test package statediff_test
import ( import (
"testing"
"github.com/ethereum/go-ethereum/statediff" "github.com/ethereum/go-ethereum/statediff"
"github.com/ethereum/go-ethereum/statediff/testhelpers" "github.com/ethereum/go-ethereum/statediff/testhelpers"
"testing"
) )
func TestNewMode(t *testing.T) { func TestNewMode(t *testing.T) {

View File

@ -2,14 +2,15 @@ package extractor_test
import ( import (
"bytes" "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/big"
"math/rand" "math/rand"
"reflect" "reflect"
"testing" "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 var publisher mocks.Publisher

View File

@ -2,12 +2,13 @@ package publisher
import ( import (
"encoding/csv" "encoding/csv"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/statediff/builder"
"os" "os"
"path/filepath" "path/filepath"
"strconv" "strconv"
"time" "time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/statediff/builder"
) )
var ( var (

View File

@ -3,11 +3,6 @@ package publisher_test
import ( import (
"bytes" "bytes"
"encoding/csv" "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" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
@ -15,6 +10,12 @@ import (
"strconv" "strconv"
"strings" "strings"
"testing" "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 ( var (

View File

@ -1,15 +1,16 @@
package service_test package service_test
import ( import (
"math/big"
"math/rand"
"reflect"
"testing"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
service2 "github.com/ethereum/go-ethereum/statediff/service" service2 "github.com/ethereum/go-ethereum/statediff/service"
"github.com/ethereum/go-ethereum/statediff/testhelpers/mocks" "github.com/ethereum/go-ethereum/statediff/testhelpers/mocks"
"math/big"
"math/rand"
"reflect"
"testing"
) )
func TestServiceLoop(t *testing.T) { func TestServiceLoop(t *testing.T) {

View File

@ -1,10 +1,11 @@
package testhelpers package testhelpers
import ( import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/statediff/builder"
"math/big" "math/big"
"math/rand" "math/rand"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/statediff/builder"
) )
var ( var (