Skip to content

Commit

Permalink
test with built in constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmtterminus committed Dec 13, 2024
1 parent 00d12aa commit 1db6bf1
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fixtures/genericinterface/genericinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ type GenericInterface[T CustomTypeT] interface {
DoSomething()
}

//counterfeiter:generate . GenericInterfaceAny
type GenericInterfaceAny[T any] interface {
ReturnT() T
TakeT(T)
TakeAndReturnT(T) T
DoSomething()
}

//counterfeiter:generate . GenericInterfaceMultipleTypes
type GenericInterfaceMultipleTypes[T CustomTypeT, U CustomTypeU] interface {
ReturnT() T
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1db6bf1

Please sign in to comment.