Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubComponent ¶
SubComponent is an autogenerated mock type for the SubComponent type
func NewSubComponent ¶
func NewSubComponent(t interface {
mock.TestingT
Cleanup(func())
}) *SubComponent
NewSubComponent creates a new instance of SubComponent. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SubComponent) Chance ¶
func (_m *SubComponent) Chance(s rand.Source) bool
Chance provides a mock function with given fields: s
func (*SubComponent) EXPECT ¶
func (_m *SubComponent) EXPECT() *SubComponent_Expecter
type SubComponent_ChanceChain ¶
type SubComponent_ChanceChain[T any] func(*T) *SubComponent_Chance_Call
func (SubComponent_ChanceChain[T]) Return ¶
func (c SubComponent_ChanceChain[T]) Return(_a0 bool) SubComponent_ChanceChain[T]
func (SubComponent_ChanceChain[T]) Run ¶
func (c SubComponent_ChanceChain[T]) Run(run func(s rand.Source)) SubComponent_ChanceChain[T]
func (SubComponent_ChanceChain[T]) RunAndReturn ¶
func (c SubComponent_ChanceChain[T]) RunAndReturn(run func(s rand.Source) bool) SubComponent_ChanceChain[T]
type SubComponent_Chance_Call ¶
SubComponent_Chance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Chance'
func (*SubComponent_Chance_Call) Return ¶
func (_c *SubComponent_Chance_Call) Return(_a0 bool) *SubComponent_Chance_Call
func (*SubComponent_Chance_Call) Run ¶
func (_c *SubComponent_Chance_Call) Run(run func(s rand.Source)) *SubComponent_Chance_Call
func (*SubComponent_Chance_Call) RunAndReturn ¶
func (_c *SubComponent_Chance_Call) RunAndReturn(run func(rand.Source) bool) *SubComponent_Chance_Call
type SubComponent_Expecter ¶
type SubComponent_Expecter struct {
// contains filtered or unexported fields
}
func (*SubComponent_Expecter) Chance ¶
func (_e *SubComponent_Expecter) Chance(s interface{}) *SubComponent_Chance_Call
Chance is a helper method to define mock.On call
- s rand.Source
type SubComponent_ExpecterChain ¶
type SubComponent_ExpecterChain[T any] func(*T) *SubComponent_Expecter
func ExpecterChain ¶
func ExpecterChain[T any](fetch func(*T) *SubComponent) SubComponent_ExpecterChain[T]
func (SubComponent_ExpecterChain[T]) Chance ¶
func (c SubComponent_ExpecterChain[T]) Chance(s interface{}) SubComponent_ChanceChain[T]
Click to show internal directories.
Click to hide internal directories.