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