Documentation
¶
Index ¶
- type ProviderMock
- func (_m *ProviderMock) EXPECT() *ProviderMock_Expecter
- func (_m *ProviderMock) Geocode(address string, config geocoding.GeocodeConfig) ([]*geocoding.Location, error)
- func (_m *ProviderMock) GeocodeWithContext(ctx context.Context, address string, config geocoding.GeocodeConfig) ([]*geocoding.Location, error)
- func (_m *ProviderMock) ReverseGeocode(loc geocoding.Location, config geocoding.ReverseGeocodeConfig) ([]*geocoding.Address, error)
- func (_m *ProviderMock) ReverseGeocodeWithContext(ctx context.Context, loc geocoding.Location, ...) ([]*geocoding.Address, error)
- type ProviderMock_Expecter
- func (_e *ProviderMock_Expecter) Geocode(address interface{}, config interface{}) *ProviderMock_Geocode_Call
- func (_e *ProviderMock_Expecter) GeocodeWithContext(ctx interface{}, address interface{}, config interface{}) *ProviderMock_GeocodeWithContext_Call
- func (_e *ProviderMock_Expecter) ReverseGeocode(loc interface{}, config interface{}) *ProviderMock_ReverseGeocode_Call
- func (_e *ProviderMock_Expecter) ReverseGeocodeWithContext(ctx interface{}, loc interface{}, config interface{}) *ProviderMock_ReverseGeocodeWithContext_Call
- type ProviderMock_GeocodeWithContext_Call
- func (_c *ProviderMock_GeocodeWithContext_Call) Return(_a0 []*geocoding.Location, _a1 error) *ProviderMock_GeocodeWithContext_Call
- func (_c *ProviderMock_GeocodeWithContext_Call) Run(run func(ctx context.Context, address string, config geocoding.GeocodeConfig)) *ProviderMock_GeocodeWithContext_Call
- func (_c *ProviderMock_GeocodeWithContext_Call) RunAndReturn(...) *ProviderMock_GeocodeWithContext_Call
- type ProviderMock_Geocode_Call
- func (_c *ProviderMock_Geocode_Call) Return(_a0 []*geocoding.Location, _a1 error) *ProviderMock_Geocode_Call
- func (_c *ProviderMock_Geocode_Call) Run(run func(address string, config geocoding.GeocodeConfig)) *ProviderMock_Geocode_Call
- func (_c *ProviderMock_Geocode_Call) RunAndReturn(run func(string, geocoding.GeocodeConfig) ([]*geocoding.Location, error)) *ProviderMock_Geocode_Call
- type ProviderMock_ReverseGeocodeWithContext_Call
- func (_c *ProviderMock_ReverseGeocodeWithContext_Call) Return(_a0 []*geocoding.Address, _a1 error) *ProviderMock_ReverseGeocodeWithContext_Call
- func (_c *ProviderMock_ReverseGeocodeWithContext_Call) Run(run func(ctx context.Context, loc geocoding.Location, ...)) *ProviderMock_ReverseGeocodeWithContext_Call
- func (_c *ProviderMock_ReverseGeocodeWithContext_Call) RunAndReturn(...) *ProviderMock_ReverseGeocodeWithContext_Call
- type ProviderMock_ReverseGeocode_Call
- func (_c *ProviderMock_ReverseGeocode_Call) Return(_a0 []*geocoding.Address, _a1 error) *ProviderMock_ReverseGeocode_Call
- func (_c *ProviderMock_ReverseGeocode_Call) Run(run func(loc geocoding.Location, config geocoding.ReverseGeocodeConfig)) *ProviderMock_ReverseGeocode_Call
- func (_c *ProviderMock_ReverseGeocode_Call) RunAndReturn(...) *ProviderMock_ReverseGeocode_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderMock ¶
ProviderMock is an autogenerated mock type for the Provider type
func NewProviderMock ¶
func NewProviderMock(t interface {
mock.TestingT
Cleanup(func())
}) *ProviderMock
NewProviderMock creates a new instance of ProviderMock. 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 (*ProviderMock) EXPECT ¶
func (_m *ProviderMock) EXPECT() *ProviderMock_Expecter
func (*ProviderMock) Geocode ¶
func (_m *ProviderMock) Geocode(address string, config geocoding.GeocodeConfig) ([]*geocoding.Location, error)
Geocode provides a mock function with given fields: address, config
func (*ProviderMock) GeocodeWithContext ¶
func (_m *ProviderMock) GeocodeWithContext(ctx context.Context, address string, config geocoding.GeocodeConfig) ([]*geocoding.Location, error)
GeocodeWithContext provides a mock function with given fields: ctx, address, config
func (*ProviderMock) ReverseGeocode ¶
func (_m *ProviderMock) ReverseGeocode(loc geocoding.Location, config geocoding.ReverseGeocodeConfig) ([]*geocoding.Address, error)
ReverseGeocode provides a mock function with given fields: loc, config
func (*ProviderMock) ReverseGeocodeWithContext ¶
func (_m *ProviderMock) ReverseGeocodeWithContext(ctx context.Context, loc geocoding.Location, config geocoding.ReverseGeocodeConfig) ([]*geocoding.Address, error)
ReverseGeocodeWithContext provides a mock function with given fields: ctx, loc, config
type ProviderMock_Expecter ¶
type ProviderMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderMock_Expecter) Geocode ¶
func (_e *ProviderMock_Expecter) Geocode(address interface{}, config interface{}) *ProviderMock_Geocode_Call
Geocode is a helper method to define mock.On call
- address string
- config geocoding.GeocodeConfig
func (*ProviderMock_Expecter) GeocodeWithContext ¶
func (_e *ProviderMock_Expecter) GeocodeWithContext(ctx interface{}, address interface{}, config interface{}) *ProviderMock_GeocodeWithContext_Call
GeocodeWithContext is a helper method to define mock.On call
- ctx context.Context
- address string
- config geocoding.GeocodeConfig
func (*ProviderMock_Expecter) ReverseGeocode ¶
func (_e *ProviderMock_Expecter) ReverseGeocode(loc interface{}, config interface{}) *ProviderMock_ReverseGeocode_Call
ReverseGeocode is a helper method to define mock.On call
- loc geocoding.Location
- config geocoding.ReverseGeocodeConfig
func (*ProviderMock_Expecter) ReverseGeocodeWithContext ¶
func (_e *ProviderMock_Expecter) ReverseGeocodeWithContext(ctx interface{}, loc interface{}, config interface{}) *ProviderMock_ReverseGeocodeWithContext_Call
ReverseGeocodeWithContext is a helper method to define mock.On call
- ctx context.Context
- loc geocoding.Location
- config geocoding.ReverseGeocodeConfig
type ProviderMock_GeocodeWithContext_Call ¶
ProviderMock_GeocodeWithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GeocodeWithContext'
func (*ProviderMock_GeocodeWithContext_Call) Return ¶
func (_c *ProviderMock_GeocodeWithContext_Call) Return(_a0 []*geocoding.Location, _a1 error) *ProviderMock_GeocodeWithContext_Call
func (*ProviderMock_GeocodeWithContext_Call) Run ¶
func (_c *ProviderMock_GeocodeWithContext_Call) Run(run func(ctx context.Context, address string, config geocoding.GeocodeConfig)) *ProviderMock_GeocodeWithContext_Call
func (*ProviderMock_GeocodeWithContext_Call) RunAndReturn ¶
func (_c *ProviderMock_GeocodeWithContext_Call) RunAndReturn(run func(context.Context, string, geocoding.GeocodeConfig) ([]*geocoding.Location, error)) *ProviderMock_GeocodeWithContext_Call
type ProviderMock_Geocode_Call ¶
ProviderMock_Geocode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Geocode'
func (*ProviderMock_Geocode_Call) Return ¶
func (_c *ProviderMock_Geocode_Call) Return(_a0 []*geocoding.Location, _a1 error) *ProviderMock_Geocode_Call
func (*ProviderMock_Geocode_Call) Run ¶
func (_c *ProviderMock_Geocode_Call) Run(run func(address string, config geocoding.GeocodeConfig)) *ProviderMock_Geocode_Call
func (*ProviderMock_Geocode_Call) RunAndReturn ¶
func (_c *ProviderMock_Geocode_Call) RunAndReturn(run func(string, geocoding.GeocodeConfig) ([]*geocoding.Location, error)) *ProviderMock_Geocode_Call
type ProviderMock_ReverseGeocodeWithContext_Call ¶
ProviderMock_ReverseGeocodeWithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReverseGeocodeWithContext'
func (*ProviderMock_ReverseGeocodeWithContext_Call) Return ¶
func (_c *ProviderMock_ReverseGeocodeWithContext_Call) Return(_a0 []*geocoding.Address, _a1 error) *ProviderMock_ReverseGeocodeWithContext_Call
func (*ProviderMock_ReverseGeocodeWithContext_Call) Run ¶
func (_c *ProviderMock_ReverseGeocodeWithContext_Call) Run(run func(ctx context.Context, loc geocoding.Location, config geocoding.ReverseGeocodeConfig)) *ProviderMock_ReverseGeocodeWithContext_Call
func (*ProviderMock_ReverseGeocodeWithContext_Call) RunAndReturn ¶
func (_c *ProviderMock_ReverseGeocodeWithContext_Call) RunAndReturn(run func(context.Context, geocoding.Location, geocoding.ReverseGeocodeConfig) ([]*geocoding.Address, error)) *ProviderMock_ReverseGeocodeWithContext_Call
type ProviderMock_ReverseGeocode_Call ¶
ProviderMock_ReverseGeocode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReverseGeocode'
func (*ProviderMock_ReverseGeocode_Call) Return ¶
func (_c *ProviderMock_ReverseGeocode_Call) Return(_a0 []*geocoding.Address, _a1 error) *ProviderMock_ReverseGeocode_Call
func (*ProviderMock_ReverseGeocode_Call) Run ¶
func (_c *ProviderMock_ReverseGeocode_Call) Run(run func(loc geocoding.Location, config geocoding.ReverseGeocodeConfig)) *ProviderMock_ReverseGeocode_Call
func (*ProviderMock_ReverseGeocode_Call) RunAndReturn ¶
func (_c *ProviderMock_ReverseGeocode_Call) RunAndReturn(run func(geocoding.Location, geocoding.ReverseGeocodeConfig) ([]*geocoding.Address, error)) *ProviderMock_ReverseGeocode_Call