mocks

package
v0.29.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (*Service) TokenInfo

func (_m *Service) TokenInfo(ctx context.Context, accessToken string) (*oauth2.GoogleTokenInfoResponse, error)

TokenInfo provides a mock function with given fields: ctx, accessToken

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

type Service_GetAuthRefresh_Call struct {
	*mock.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 (*Service_GetAuthRefresh_Call) Run

func (*Service_GetAuthRefresh_Call) RunAndReturn

type Service_TokenInfo_Call

type Service_TokenInfo_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL