Documentation ¶
Index ¶
- type Interface
- type MockInterface
- type MockInterface_Expecter
- type MockInterface_GetUserBySub_Call
- func (_c *MockInterface_GetUserBySub_Call) Return(_a0 *User, _a1 error) *MockInterface_GetUserBySub_Call
- func (_c *MockInterface_GetUserBySub_Call) Run(run func(ctx context.Context, sub string)) *MockInterface_GetUserBySub_Call
- func (_c *MockInterface_GetUserBySub_Call) RunAndReturn(run func(context.Context, string) (*User, error)) *MockInterface_GetUserBySub_Call
- type UnimplementedClient
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t interface { mock.TestingT Cleanup(func()) }) *MockInterface
NewMockInterface creates a new instance of MockInterface. 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 (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) GetUserBySub ¶
GetUserBySub provides a mock function with given fields: ctx, sub
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) GetUserBySub ¶
func (_e *MockInterface_Expecter) GetUserBySub(ctx interface{}, sub interface{}) *MockInterface_GetUserBySub_Call
GetUserBySub is a helper method to define mock.On call
- ctx context.Context
- sub string
type MockInterface_GetUserBySub_Call ¶
MockInterface_GetUserBySub_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserBySub'
func (*MockInterface_GetUserBySub_Call) Return ¶
func (_c *MockInterface_GetUserBySub_Call) Return(_a0 *User, _a1 error) *MockInterface_GetUserBySub_Call
func (*MockInterface_GetUserBySub_Call) Run ¶
func (_c *MockInterface_GetUserBySub_Call) Run(run func(ctx context.Context, sub string)) *MockInterface_GetUserBySub_Call
func (*MockInterface_GetUserBySub_Call) RunAndReturn ¶
func (_c *MockInterface_GetUserBySub_Call) RunAndReturn(run func(context.Context, string) (*User, error)) *MockInterface_GetUserBySub_Call
type UnimplementedClient ¶
type UnimplementedClient struct{}
func (*UnimplementedClient) GetUserBySub ¶
Click to show internal directories.
Click to hide internal directories.