mocks

package
v0.0.0-...-c76264e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PokeClient

type PokeClient struct {
	mock.Mock
}

PokeClient is an autogenerated mock type for the PokeClient type

func NewPokeClient

func NewPokeClient(t mockConstructorTestingTNewPokeClient) *PokeClient

NewPokeClient creates a new instance of PokeClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PokeClient) EXPECT

func (_m *PokeClient) EXPECT() *PokeClient_Expecter

func (*PokeClient) FetchPokemon

func (_m *PokeClient) FetchPokemon(ID string) (*structs.Pokemon, error)

FetchPokemon provides a mock function with given fields: ID

type PokeClient_Expecter

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

func (*PokeClient_Expecter) FetchPokemon

func (_e *PokeClient_Expecter) FetchPokemon(ID interface{}) *PokeClient_FetchPokemon_Call

FetchPokemon is a helper method to define mock.On call

  • ID string

type PokeClient_FetchPokemon_Call

type PokeClient_FetchPokemon_Call struct {
	*mock.Call
}

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

func (*PokeClient_FetchPokemon_Call) Return

func (*PokeClient_FetchPokemon_Call) Run

func (*PokeClient_FetchPokemon_Call) RunAndReturn

Jump to

Keyboard shortcuts

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