Documentation ¶
Index ¶
- type Service
- type Service_Expecter
- type Service_GetAuthRefresh_Call
- func (_c *Service_GetAuthRefresh_Call) Return(_a0 *oauth2.GoogleAuthResponse, _a1 error) *Service_GetAuthRefresh_Call
- func (_c *Service_GetAuthRefresh_Call) Run(run func(ctx context.Context, authRequest *oauth2.GoogleAuthRequest)) *Service_GetAuthRefresh_Call
- func (_c *Service_GetAuthRefresh_Call) RunAndReturn(...) *Service_GetAuthRefresh_Call
- type Service_TokenInfo_Call
- func (_c *Service_TokenInfo_Call) Return(_a0 *oauth2.GoogleTokenInfoResponse, _a1 error) *Service_TokenInfo_Call
- func (_c *Service_TokenInfo_Call) Run(run func(ctx context.Context, accessToken string)) *Service_TokenInfo_Call
- func (_c *Service_TokenInfo_Call) RunAndReturn(run func(context.Context, string) (*oauth2.GoogleTokenInfoResponse, error)) *Service_TokenInfo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) GetAuthRefresh ¶
func (_m *Service) GetAuthRefresh(ctx context.Context, authRequest *oauth2.GoogleAuthRequest) (*oauth2.GoogleAuthResponse, error)
GetAuthRefresh provides a mock function with given fields: ctx, authRequest
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) GetAuthRefresh ¶
func (_e *Service_Expecter) GetAuthRefresh(ctx interface{}, authRequest interface{}) *Service_GetAuthRefresh_Call
GetAuthRefresh is a helper method to define mock.On call
- ctx context.Context
- authRequest *oauth2.GoogleAuthRequest
func (*Service_Expecter) TokenInfo ¶
func (_e *Service_Expecter) TokenInfo(ctx interface{}, accessToken interface{}) *Service_TokenInfo_Call
TokenInfo is a helper method to define mock.On call
- ctx context.Context
- accessToken string
type Service_GetAuthRefresh_Call ¶
Service_GetAuthRefresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuthRefresh'
func (*Service_GetAuthRefresh_Call) Return ¶
func (_c *Service_GetAuthRefresh_Call) Return(_a0 *oauth2.GoogleAuthResponse, _a1 error) *Service_GetAuthRefresh_Call
func (*Service_GetAuthRefresh_Call) Run ¶
func (_c *Service_GetAuthRefresh_Call) Run(run func(ctx context.Context, authRequest *oauth2.GoogleAuthRequest)) *Service_GetAuthRefresh_Call
func (*Service_GetAuthRefresh_Call) RunAndReturn ¶
func (_c *Service_GetAuthRefresh_Call) RunAndReturn(run func(context.Context, *oauth2.GoogleAuthRequest) (*oauth2.GoogleAuthResponse, error)) *Service_GetAuthRefresh_Call
type Service_TokenInfo_Call ¶
Service_TokenInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokenInfo'
func (*Service_TokenInfo_Call) Return ¶
func (_c *Service_TokenInfo_Call) Return(_a0 *oauth2.GoogleTokenInfoResponse, _a1 error) *Service_TokenInfo_Call
func (*Service_TokenInfo_Call) Run ¶
func (_c *Service_TokenInfo_Call) Run(run func(ctx context.Context, accessToken string)) *Service_TokenInfo_Call
func (*Service_TokenInfo_Call) RunAndReturn ¶
func (_c *Service_TokenInfo_Call) RunAndReturn(run func(context.Context, string) (*oauth2.GoogleTokenInfoResponse, error)) *Service_TokenInfo_Call