Skip to content

Commit

Permalink
style(*): reformat imports with dubbogo/tools/imports-formatter (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: dongjianhui03 <dongjianhui03@meituan.com>
  • Loading branch information
Mulavar and dongjianhui03 committed Aug 5, 2021
1 parent c0e1af7 commit 2248017
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 7 deletions.
2 changes: 2 additions & 0 deletions container/queue/poolqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import (
"sync"
"sync/atomic"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 3 additions & 1 deletion container/set/hashset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/
package gxset

import "testing"
import (
"testing"
)

func TestSetNew(t *testing.T) {
set := NewSet(2, 1)
Expand Down
2 changes: 2 additions & 0 deletions database/kv/etcd/v3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ import (

import (
perrors "github.com/pkg/errors"

"go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/concurrency"

"google.golang.org/grpc"
)

Expand Down
4 changes: 4 additions & 0 deletions database/kv/etcd/v3/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ import (

import (
perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"

"go.etcd.io/etcd/api/v3/mvccpb"

"go.etcd.io/etcd/server/v3/embed"

"google.golang.org/grpc/connectivity"
)

Expand Down
1 change: 1 addition & 0 deletions database/kv/nacos/config_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
import (
"github.com/nacos-group/nacos-sdk-go/common/constant"
"github.com/nacos-group/nacos-sdk-go/vo"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions database/kv/nacos/naming_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

import (
"github.com/nacos-group/nacos-sdk-go/common/constant"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions database/kv/zk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (

import (
"github.com/dubbogo/go-zookeeper/zk"

perrors "github.com/pkg/errors"
)

Expand Down
1 change: 1 addition & 0 deletions database/kv/zk/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

import (
"github.com/dubbogo/go-zookeeper/zk"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions encoding/json/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (

import (
"github.com/dubbogo/jsonparser"

perrors "github.com/pkg/errors"
)

Expand Down
1 change: 1 addition & 0 deletions log/pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package gxlog

import (
"github.com/davecgh/go-spew/spew"

"github.com/k0kubun/pp"
)

Expand Down
4 changes: 3 additions & 1 deletion math/big/decimal_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

package gxbig

import "testing"
import (
"testing"
)

func BenchmarkRound(b *testing.B) {
b.StopTimer()
Expand Down
4 changes: 0 additions & 4 deletions time/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ import (
"time"
)

/////////////////////////////////////////
// count watch
/////////////////////////////////////////

type CountWatch struct {
start time.Time
}
Expand Down
5 changes: 4 additions & 1 deletion time/sleep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ import (
)

import (
"github.com/dubbogo/gost/log"
"github.com/stretchr/testify/assert"
)

import (
"github.com/dubbogo/gost/log"
)

func TestNewTimerWheel(t *testing.T) {
var (
index int
Expand Down

0 comments on commit 2248017

Please sign in to comment.