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

Rem:gomonkey move #1881

Merged
merged 24 commits into from
May 5, 2022
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
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/RoaringBitmap/roaring v0.7.1
github.com/Workiva/go-datastructures v1.0.52
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/agiledragon/gomonkey v2.0.2+incompatible
github.com/alibaba/sentinel-golang v1.0.4
github.com/apache/dubbo-getty v1.4.8
github.com/apache/dubbo-go-hessian2 v1.11.0
Expand Down
2 changes: 2 additions & 0 deletions metadata/report/etcd/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package etcd

/*
import (
"encoding/json"
"reflect"
Expand Down Expand Up @@ -361,3 +362,4 @@ func Test_etcdMetadataReport_GetAppMetadata(t *testing.T) {
})
}
}
*/
9 changes: 4 additions & 5 deletions registry/etcdv3/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@

package etcdv3

import (
"testing"
)

import (
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/config_center"
"dubbo.apache.org/dubbo-go/v3/remoting"
)

type MockDataListener struct{}
Expand All @@ -42,6 +37,8 @@ func newDataListener(listenerFields dataListenerFields) *dataListener {
listener: listenerFields.listener,
}
}

/*
func Test_dataListener_DataChange(t *testing.T) {
tests := []struct {
name string
Expand Down Expand Up @@ -72,3 +69,5 @@ func Test_dataListener_DataChange(t *testing.T) {
})
}
}
*/
3 changes: 3 additions & 0 deletions registry/etcdv3/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// nolint
package etcdv3

/*
import (
"reflect"
"sync"
Expand Down Expand Up @@ -117,3 +118,5 @@ func Test_etcdV3Registry_DoUnregister(t *testing.T) {
})
}
}
*/
3 changes: 3 additions & 0 deletions remoting/nacos/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package nacos

/*
import (
"net/url"
"reflect"
Expand Down Expand Up @@ -205,3 +206,5 @@ func TestNewNacosConfigClientByUrl(t *testing.T) {
})
}
}
*/