mirror of
https://github.com/romdo/gomockctx.git
synced 2026-02-19 08:06:40 +00:00
refactor: Deprecate Is() in favor of Eq() which behaves the same
This commit is contained in:
@@ -34,7 +34,7 @@ func TestNew(t *testing.T) {
|
||||
assert.Len(t, ids, limit)
|
||||
}
|
||||
|
||||
func TestIs(t *testing.T) {
|
||||
func TestEq(t *testing.T) {
|
||||
type strKey string
|
||||
|
||||
type args struct {
|
||||
@@ -100,7 +100,7 @@ func TestIs(t *testing.T) {
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got := Is(tt.args.ctx)
|
||||
got := Eq(tt.args.ctx)
|
||||
|
||||
assert.Implements(t, (*gomock.Matcher)(nil), got)
|
||||
|
||||
@@ -109,6 +109,10 @@ func TestIs(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestIs(t *testing.T) {
|
||||
TestEq(t)
|
||||
}
|
||||
|
||||
func TestID(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user