Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(*): reformat imports with dubbogo/tools/imports-formatter #67

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
style(*): reformat imports with dubbogo/tools/imports-formatter
  • Loading branch information
dongjianhui03 committed Aug 5, 2021
commit 8a3570e76563d6ab3fe302a6433ed57170c21a0d
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