Documentation ¶
Index ¶
- type MockMaker
- type MockMaker_CreateToken_Call
- func (_c *MockMaker_CreateToken_Call) Return(_a0 string, _a1 *token.Payload, _a2 error) *MockMaker_CreateToken_Call
- func (_c *MockMaker_CreateToken_Call) Run(run func(user token.User, duration time.Duration)) *MockMaker_CreateToken_Call
- func (_c *MockMaker_CreateToken_Call) RunAndReturn(run func(token.User, time.Duration) (string, *token.Payload, error)) *MockMaker_CreateToken_Call
- type MockMaker_Expecter
- type MockMaker_VerifyToken_Call
- func (_c *MockMaker_VerifyToken_Call) Return(_a0 *token.Payload, _a1 error) *MockMaker_VerifyToken_Call
- func (_c *MockMaker_VerifyToken_Call) Run(run func(_a0 string)) *MockMaker_VerifyToken_Call
- func (_c *MockMaker_VerifyToken_Call) RunAndReturn(run func(string) (*token.Payload, error)) *MockMaker_VerifyToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) CreateToken ¶
func (_m *MockMaker) CreateToken(user token.User, duration time.Duration) (string, *token.Payload, error)
CreateToken provides a mock function with given fields: user, duration
func (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
type MockMaker_CreateToken_Call ¶
MockMaker_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'
func (*MockMaker_CreateToken_Call) Return ¶
func (_c *MockMaker_CreateToken_Call) Return(_a0 string, _a1 *token.Payload, _a2 error) *MockMaker_CreateToken_Call
func (*MockMaker_CreateToken_Call) Run ¶
func (_c *MockMaker_CreateToken_Call) Run(run func(user token.User, duration time.Duration)) *MockMaker_CreateToken_Call
func (*MockMaker_CreateToken_Call) RunAndReturn ¶
func (_c *MockMaker_CreateToken_Call) RunAndReturn(run func(token.User, time.Duration) (string, *token.Payload, error)) *MockMaker_CreateToken_Call
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) CreateToken ¶
func (_e *MockMaker_Expecter) CreateToken(user interface{}, duration interface{}) *MockMaker_CreateToken_Call
CreateToken is a helper method to define mock.On call
- user token.User
- duration time.Duration
func (*MockMaker_Expecter) VerifyToken ¶
func (_e *MockMaker_Expecter) VerifyToken(_a0 interface{}) *MockMaker_VerifyToken_Call
VerifyToken is a helper method to define mock.On call
- _a0 string
type MockMaker_VerifyToken_Call ¶
MockMaker_VerifyToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyToken'
func (*MockMaker_VerifyToken_Call) Return ¶
func (_c *MockMaker_VerifyToken_Call) Return(_a0 *token.Payload, _a1 error) *MockMaker_VerifyToken_Call
func (*MockMaker_VerifyToken_Call) Run ¶
func (_c *MockMaker_VerifyToken_Call) Run(run func(_a0 string)) *MockMaker_VerifyToken_Call
func (*MockMaker_VerifyToken_Call) RunAndReturn ¶
func (_c *MockMaker_VerifyToken_Call) RunAndReturn(run func(string) (*token.Payload, error)) *MockMaker_VerifyToken_Call