Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Process ¶
func Process[T any, V comparable](g GenericInterface[T, V], t T, v []V) bool
Types ¶
type GenericInterface ¶
type GenericInterface[T any, V comparable] interface { Process(T, []V) (chan T, V) Get() V }
type GenericInterfaceMock ¶
type GenericInterfaceMock GenericInterface[int, float32]
GenericInterfaceMock test interface for mocking generics Annotations:
@Mock(name="GenericInterfaceMock")
type ParametrizedFunc ¶
type ParametrizedFunc[T comparable] func(t T) []T
type ParametrizedFuncMock ¶
type ParametrizedFuncMock ParametrizedFunc[*http.Request]
ParametrizedFuncMock test function for mocking generics Annotations:
@Mock(name="ParametrizedFuncMock")
Click to show internal directories.
Click to hide internal directories.