Documentation ¶
Index ¶
- type PokeClient
- type PokeClient_Expecter
- type PokeClient_FetchPokemon_Call
- func (_c *PokeClient_FetchPokemon_Call) Return(_a0 *structs.Pokemon, _a1 error) *PokeClient_FetchPokemon_Call
- func (_c *PokeClient_FetchPokemon_Call) Run(run func(ID string)) *PokeClient_FetchPokemon_Call
- func (_c *PokeClient_FetchPokemon_Call) RunAndReturn(run func(string) (*structs.Pokemon, error)) *PokeClient_FetchPokemon_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PokeClient ¶
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 ¶
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 (_c *PokeClient_FetchPokemon_Call) Return(_a0 *structs.Pokemon, _a1 error) *PokeClient_FetchPokemon_Call
func (*PokeClient_FetchPokemon_Call) Run ¶
func (_c *PokeClient_FetchPokemon_Call) Run(run func(ID string)) *PokeClient_FetchPokemon_Call
func (*PokeClient_FetchPokemon_Call) RunAndReturn ¶
func (_c *PokeClient_FetchPokemon_Call) RunAndReturn(run func(string) (*structs.Pokemon, error)) *PokeClient_FetchPokemon_Call
Click to show internal directories.
Click to hide internal directories.