Skip to content

Commit

Permalink
gomonkey delete (apache#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
pherzheyu committed May 5, 2022
1 parent 82cfcf6 commit 6d178b1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
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) {
})
}
}
*/

0 comments on commit 6d178b1

Please sign in to comment.