Skip to content

Commit

Permalink
Add generic matcher versions for ginkgo_compatible too
Browse files Browse the repository at this point in the history
  • Loading branch information
petergtz committed May 9, 2023
1 parent cff1351 commit 4d3ed32
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ginkgo_compatible/matchers_generic.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package mock

import "github.com/petergtz/pegomock/v3"

func Eq[T any](value T) T { return pegomock.Eq(value) }
func NotEq[T any](value T) T { return pegomock.NotEq(value) }
func Any[T any]() T { return pegomock.Any[T]() }

func ArgThat[T any](matcher pegomock.ArgumentMatcher) T { return pegomock.ArgThat[T](matcher) }

0 comments on commit 4d3ed32

Please sign in to comment.