Documentation ¶
Index ¶
- type Sample
- func (sMock *Sample[T, K]) Age() int
- func (sMock *Sample[T, K]) Name() string
- func (sMock *Sample[T, K]) SetAndGetUser(name string, age int, ex example_types.Example) *example_types.User
- func (sMock *Sample[T, K]) SetName(name string)
- func (sMock *Sample[T, K]) SetUser(name string, age int, ex example_types.Example, writer io2.Writer)
- type SampleCallerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
type Sample[T any, K any] struct { Calls map[string][]SampleCallerInfo MockAge func() int MockName func() string MockSetAndGetUser func(name string, age int, ex example_types.Example) *example_types.User MockSetName func(name string) MockSetUser func(name string, age int, ex example_types.Example, writer io2.Writer) }
func (*Sample[T, K]) SetAndGetUser ¶
func (sMock *Sample[T, K]) SetAndGetUser(name string, age int, ex example_types.Example) *example_types.User
type SampleCallerInfo ¶
type SampleCallerInfo struct {
Args []any
}
Click to show internal directories.
Click to hide internal directories.