mock

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderMock

type ProviderMock struct {
	mock.Mock
}

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

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

func (*ProviderMock_GeocodeWithContext_Call) RunAndReturn

type ProviderMock_Geocode_Call

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

func (*ProviderMock_Geocode_Call) RunAndReturn

type ProviderMock_ReverseGeocodeWithContext_Call

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

type ProviderMock_ReverseGeocode_Call

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

Jump to

Keyboard shortcuts

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