mocks

package
v2.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PopulationFetcher

type PopulationFetcher struct {
	mock.Mock
}

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 (*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

type PopulationFetcher_GetForAgeBracket_Call struct {
	*mock.Call
}

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 (*PopulationFetcher_GetForAgeBracket_Call) Run added in v2.2.0

func (*PopulationFetcher_GetForAgeBracket_Call) RunAndReturn added in v2.2.0

type PopulationFetcher_GetForRegion_Call added in v2.2.0

type PopulationFetcher_GetForRegion_Call struct {
	*mock.Call
}

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 (*PopulationFetcher_GetForRegion_Call) Run added in v2.2.0

func (*PopulationFetcher_GetForRegion_Call) RunAndReturn added in v2.2.0

type PopulationFetcher_WaitTillReady_Call

type PopulationFetcher_WaitTillReady_Call struct {
	*mock.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 (*PopulationFetcher_WaitTillReady_Call) Run

func (*PopulationFetcher_WaitTillReady_Call) RunAndReturn

type Publisher

type Publisher[T interface{}] struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher

func NewPublisher[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher[T]

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

type Publisher_Register_Call[T interface{}] struct {
	*mock.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 (*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

type Publisher_Unregister_Call[T interface{}] struct {
	*mock.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 (*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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL