Documentation ¶
Index ¶
- type Greeter
- type Greeter_Execute_Call
- func (_c *Greeter_Execute_Call) Return(_a0 string, _a1 error) *Greeter_Execute_Call
- func (_c *Greeter_Execute_Call) Run(run func(_a0 context.Context, _a1 string)) *Greeter_Execute_Call
- func (_c *Greeter_Execute_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Greeter_Execute_Call
- type Greeter_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Greeter ¶
Greeter is an autogenerated mock type for the Greeter type
func NewGreeter ¶
NewGreeter creates a new instance of Greeter. 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 (*Greeter) EXPECT ¶
func (_m *Greeter) EXPECT() *Greeter_Expecter
type Greeter_Execute_Call ¶
Greeter_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Greeter_Execute_Call) Return ¶
func (_c *Greeter_Execute_Call) Return(_a0 string, _a1 error) *Greeter_Execute_Call
func (*Greeter_Execute_Call) Run ¶
func (_c *Greeter_Execute_Call) Run(run func(_a0 context.Context, _a1 string)) *Greeter_Execute_Call
func (*Greeter_Execute_Call) RunAndReturn ¶
func (_c *Greeter_Execute_Call) RunAndReturn(run func(context.Context, string) (string, error)) *Greeter_Execute_Call
type Greeter_Expecter ¶
type Greeter_Expecter struct {
// contains filtered or unexported fields
}
func (*Greeter_Expecter) Execute ¶
func (_e *Greeter_Expecter) Execute(_a0 interface{}, _a1 interface{}) *Greeter_Execute_Call
Execute is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
Click to show internal directories.
Click to hide internal directories.