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