Documentation ¶
Index ¶
- type PopulationFetcher
- type PopulationFetcher_Expecter
- func (_e *PopulationFetcher_Expecter) GetForAgeBracket(_a0 interface{}) *PopulationFetcher_GetForAgeBracket_Call
- func (_e *PopulationFetcher_Expecter) GetForRegion(region interface{}) *PopulationFetcher_GetForRegion_Call
- func (_e *PopulationFetcher_Expecter) WaitTillReady(ctx interface{}) *PopulationFetcher_WaitTillReady_Call
- type PopulationFetcher_GetForAgeBracket_Call
- func (_c *PopulationFetcher_GetForAgeBracket_Call) Return(count int) *PopulationFetcher_GetForAgeBracket_Call
- func (_c *PopulationFetcher_GetForAgeBracket_Call) Run(run func(_a0 bracket.Bracket)) *PopulationFetcher_GetForAgeBracket_Call
- func (_c *PopulationFetcher_GetForAgeBracket_Call) RunAndReturn(run func(bracket.Bracket) int) *PopulationFetcher_GetForAgeBracket_Call
- type PopulationFetcher_GetForRegion_Call
- func (_c *PopulationFetcher_GetForRegion_Call) Return(count int) *PopulationFetcher_GetForRegion_Call
- func (_c *PopulationFetcher_GetForRegion_Call) Run(run func(region string)) *PopulationFetcher_GetForRegion_Call
- func (_c *PopulationFetcher_GetForRegion_Call) RunAndReturn(run func(string) int) *PopulationFetcher_GetForRegion_Call
- type PopulationFetcher_WaitTillReady_Call
- func (_c *PopulationFetcher_WaitTillReady_Call) Return(_a0 error) *PopulationFetcher_WaitTillReady_Call
- func (_c *PopulationFetcher_WaitTillReady_Call) Run(run func(ctx context.Context)) *PopulationFetcher_WaitTillReady_Call
- func (_c *PopulationFetcher_WaitTillReady_Call) RunAndReturn(run func(context.Context) error) *PopulationFetcher_WaitTillReady_Call
- type Publisher
- type Publisher_Expecter
- type Publisher_Register_Call
- type Publisher_Unregister_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PopulationFetcher ¶
PopulationFetcher is an autogenerated mock type for the PopulationFetcher type
func NewPopulationFetcher ¶
func NewPopulationFetcher(t interface { mock.TestingT Cleanup(func()) }) *PopulationFetcher
NewPopulationFetcher creates a new instance of PopulationFetcher. 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 (*PopulationFetcher) EXPECT ¶
func (_m *PopulationFetcher) EXPECT() *PopulationFetcher_Expecter
func (*PopulationFetcher) GetForAgeBracket ¶ added in v2.2.0
func (_m *PopulationFetcher) GetForAgeBracket(_a0 bracket.Bracket) int
GetForAgeBracket provides a mock function with given fields: _a0
func (*PopulationFetcher) GetForRegion ¶ added in v2.2.0
func (_m *PopulationFetcher) GetForRegion(region string) int
GetForRegion provides a mock function with given fields: region
func (*PopulationFetcher) WaitTillReady ¶
func (_m *PopulationFetcher) WaitTillReady(ctx context.Context) error
WaitTillReady provides a mock function with given fields: ctx
type PopulationFetcher_Expecter ¶
type PopulationFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*PopulationFetcher_Expecter) GetForAgeBracket ¶ added in v2.2.0
func (_e *PopulationFetcher_Expecter) GetForAgeBracket(_a0 interface{}) *PopulationFetcher_GetForAgeBracket_Call
GetForAgeBracket is a helper method to define mock.On call
- _a0 bracket.Bracket
func (*PopulationFetcher_Expecter) GetForRegion ¶ added in v2.2.0
func (_e *PopulationFetcher_Expecter) GetForRegion(region interface{}) *PopulationFetcher_GetForRegion_Call
GetForRegion is a helper method to define mock.On call
- region string
func (*PopulationFetcher_Expecter) WaitTillReady ¶
func (_e *PopulationFetcher_Expecter) WaitTillReady(ctx interface{}) *PopulationFetcher_WaitTillReady_Call
WaitTillReady is a helper method to define mock.On call
- ctx context.Context
type PopulationFetcher_GetForAgeBracket_Call ¶ added in v2.2.0
PopulationFetcher_GetForAgeBracket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetForAgeBracket'
func (*PopulationFetcher_GetForAgeBracket_Call) Return ¶ added in v2.2.0
func (_c *PopulationFetcher_GetForAgeBracket_Call) Return(count int) *PopulationFetcher_GetForAgeBracket_Call
func (*PopulationFetcher_GetForAgeBracket_Call) Run ¶ added in v2.2.0
func (_c *PopulationFetcher_GetForAgeBracket_Call) Run(run func(_a0 bracket.Bracket)) *PopulationFetcher_GetForAgeBracket_Call
func (*PopulationFetcher_GetForAgeBracket_Call) RunAndReturn ¶ added in v2.2.0
func (_c *PopulationFetcher_GetForAgeBracket_Call) RunAndReturn(run func(bracket.Bracket) int) *PopulationFetcher_GetForAgeBracket_Call
type PopulationFetcher_GetForRegion_Call ¶ added in v2.2.0
PopulationFetcher_GetForRegion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetForRegion'
func (*PopulationFetcher_GetForRegion_Call) Return ¶ added in v2.2.0
func (_c *PopulationFetcher_GetForRegion_Call) Return(count int) *PopulationFetcher_GetForRegion_Call
func (*PopulationFetcher_GetForRegion_Call) Run ¶ added in v2.2.0
func (_c *PopulationFetcher_GetForRegion_Call) Run(run func(region string)) *PopulationFetcher_GetForRegion_Call
func (*PopulationFetcher_GetForRegion_Call) RunAndReturn ¶ added in v2.2.0
func (_c *PopulationFetcher_GetForRegion_Call) RunAndReturn(run func(string) int) *PopulationFetcher_GetForRegion_Call
type PopulationFetcher_WaitTillReady_Call ¶
PopulationFetcher_WaitTillReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitTillReady'
func (*PopulationFetcher_WaitTillReady_Call) Return ¶
func (_c *PopulationFetcher_WaitTillReady_Call) Return(_a0 error) *PopulationFetcher_WaitTillReady_Call
func (*PopulationFetcher_WaitTillReady_Call) Run ¶
func (_c *PopulationFetcher_WaitTillReady_Call) Run(run func(ctx context.Context)) *PopulationFetcher_WaitTillReady_Call
func (*PopulationFetcher_WaitTillReady_Call) RunAndReturn ¶
func (_c *PopulationFetcher_WaitTillReady_Call) RunAndReturn(run func(context.Context) error) *PopulationFetcher_WaitTillReady_Call
type Publisher ¶
Publisher is an autogenerated mock type for the Publisher type
func NewPublisher ¶
NewPublisher creates a new instance of Publisher. 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 (*Publisher[T]) EXPECT ¶
func (_m *Publisher[T]) EXPECT() *Publisher_Expecter[T]
func (*Publisher[T]) Register ¶
func (_m *Publisher[T]) Register(_a0 chan T)
Register provides a mock function with given fields: _a0
func (*Publisher[T]) Unregister ¶
func (_m *Publisher[T]) Unregister(_a0 chan T)
Unregister provides a mock function with given fields: _a0
type Publisher_Expecter ¶
type Publisher_Expecter[T interface{}] struct {
// contains filtered or unexported fields
}
func (*Publisher_Expecter[T]) Register ¶
func (_e *Publisher_Expecter[T]) Register(_a0 interface{}) *Publisher_Register_Call[T]
Register is a helper method to define mock.On call
- _a0 chan T
func (*Publisher_Expecter[T]) Unregister ¶
func (_e *Publisher_Expecter[T]) Unregister(_a0 interface{}) *Publisher_Unregister_Call[T]
Unregister is a helper method to define mock.On call
- _a0 chan T
type Publisher_Register_Call ¶
Publisher_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Publisher_Register_Call[T]) Return ¶
func (_c *Publisher_Register_Call[T]) Return() *Publisher_Register_Call[T]
func (*Publisher_Register_Call[T]) Run ¶
func (_c *Publisher_Register_Call[T]) Run(run func(_a0 chan T)) *Publisher_Register_Call[T]
func (*Publisher_Register_Call[T]) RunAndReturn ¶
func (_c *Publisher_Register_Call[T]) RunAndReturn(run func(chan T)) *Publisher_Register_Call[T]
type Publisher_Unregister_Call ¶
Publisher_Unregister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unregister'
func (*Publisher_Unregister_Call[T]) Return ¶
func (_c *Publisher_Unregister_Call[T]) Return() *Publisher_Unregister_Call[T]
func (*Publisher_Unregister_Call[T]) Run ¶
func (_c *Publisher_Unregister_Call[T]) Run(run func(_a0 chan T)) *Publisher_Unregister_Call[T]
func (*Publisher_Unregister_Call[T]) RunAndReturn ¶
func (_c *Publisher_Unregister_Call[T]) RunAndReturn(run func(chan T)) *Publisher_Unregister_Call[T]