mocks

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locator

type Locator struct {
	mock.Mock
}

Locator is an autogenerated mock type for the Locator type

func NewLocator

func NewLocator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Locator

NewLocator creates a new instance of Locator. 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 (*Locator) EXPECT

func (_m *Locator) EXPECT() *Locator_Expecter

func (*Locator) Locate

func (_m *Locator) Locate(_a0 string) (iplocator.Location, error)

Locate provides a mock function with given fields: _a0

type Locator_Expecter

type Locator_Expecter struct {
	// contains filtered or unexported fields
}

func (*Locator_Expecter) Locate

func (_e *Locator_Expecter) Locate(_a0 interface{}) *Locator_Locate_Call

Locate is a helper method to define mock.On call

  • _a0 string

type Locator_Locate_Call

type Locator_Locate_Call struct {
	*mock.Call
}

Locator_Locate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Locate'

func (*Locator_Locate_Call) Return

func (*Locator_Locate_Call) Run

func (_c *Locator_Locate_Call) Run(run func(_a0 string)) *Locator_Locate_Call

func (*Locator_Locate_Call) RunAndReturn

func (_c *Locator_Locate_Call) RunAndReturn(run func(string) (iplocator.Location, error)) *Locator_Locate_Call

Jump to

Keyboard shortcuts

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