mocks

package
v0.0.0-...-df3562f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationUsecaseInterface

type AuthenticationUsecaseInterface struct {
	mock.Mock
}

AuthenticationUsecaseInterface is an autogenerated mock type for the AuthenticationUsecaseInterface type

func NewAuthenticationUsecaseInterface

func NewAuthenticationUsecaseInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthenticationUsecaseInterface

NewAuthenticationUsecaseInterface creates a new instance of AuthenticationUsecaseInterface. 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 (*AuthenticationUsecaseInterface) EXPECT

func (*AuthenticationUsecaseInterface) GetUserInfo

func (_m *AuthenticationUsecaseInterface) GetUserInfo(ctx context.Context, bearerToken string) (*domain.AppUserModel, error)

GetUserInfo provides a mock function with given fields: ctx, bearerToken

func (*AuthenticationUsecaseInterface) RefreshToken

func (_m *AuthenticationUsecaseInterface) RefreshToken(ctx context.Context, refreshToken string) (string, error)

RefreshToken provides a mock function with given fields: ctx, refreshToken

type AuthenticationUsecaseInterface_Expecter

type AuthenticationUsecaseInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*AuthenticationUsecaseInterface_Expecter) GetUserInfo

func (_e *AuthenticationUsecaseInterface_Expecter) GetUserInfo(ctx interface{}, bearerToken interface{}) *AuthenticationUsecaseInterface_GetUserInfo_Call

GetUserInfo is a helper method to define mock.On call

  • ctx context.Context
  • bearerToken string

func (*AuthenticationUsecaseInterface_Expecter) RefreshToken

func (_e *AuthenticationUsecaseInterface_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *AuthenticationUsecaseInterface_RefreshToken_Call

RefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • refreshToken string

type AuthenticationUsecaseInterface_GetUserInfo_Call

type AuthenticationUsecaseInterface_GetUserInfo_Call struct {
	*mock.Call
}

AuthenticationUsecaseInterface_GetUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserInfo'

func (*AuthenticationUsecaseInterface_GetUserInfo_Call) Return

func (*AuthenticationUsecaseInterface_GetUserInfo_Call) Run

func (*AuthenticationUsecaseInterface_GetUserInfo_Call) RunAndReturn

type AuthenticationUsecaseInterface_RefreshToken_Call

type AuthenticationUsecaseInterface_RefreshToken_Call struct {
	*mock.Call
}

AuthenticationUsecaseInterface_RefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshToken'

func (*AuthenticationUsecaseInterface_RefreshToken_Call) Return

func (*AuthenticationUsecaseInterface_RefreshToken_Call) Run

func (*AuthenticationUsecaseInterface_RefreshToken_Call) RunAndReturn

type GoogleUserUsecaseInterface

type GoogleUserUsecaseInterface struct {
	mock.Mock
}

GoogleUserUsecaseInterface is an autogenerated mock type for the GoogleUserUsecaseInterface type

func NewGoogleUserUsecaseInterface

func NewGoogleUserUsecaseInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoogleUserUsecaseInterface

NewGoogleUserUsecaseInterface creates a new instance of GoogleUserUsecaseInterface. 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 (*GoogleUserUsecaseInterface) Authorize

func (_m *GoogleUserUsecaseInterface) Authorize(ctx context.Context, state string, code string, organizationName string) (*domain.AuthTokenSet, error)

Authorize provides a mock function with given fields: ctx, state, code, organizationName

func (*GoogleUserUsecaseInterface) EXPECT

func (*GoogleUserUsecaseInterface) GenerateState

func (_m *GoogleUserUsecaseInterface) GenerateState(_a0 context.Context) (string, error)

GenerateState provides a mock function with given fields: _a0

type GoogleUserUsecaseInterface_Authorize_Call

type GoogleUserUsecaseInterface_Authorize_Call struct {
	*mock.Call
}

GoogleUserUsecaseInterface_Authorize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authorize'

func (*GoogleUserUsecaseInterface_Authorize_Call) Return

func (*GoogleUserUsecaseInterface_Authorize_Call) Run

func (*GoogleUserUsecaseInterface_Authorize_Call) RunAndReturn

type GoogleUserUsecaseInterface_Expecter

type GoogleUserUsecaseInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*GoogleUserUsecaseInterface_Expecter) Authorize

func (_e *GoogleUserUsecaseInterface_Expecter) Authorize(ctx interface{}, state interface{}, code interface{}, organizationName interface{}) *GoogleUserUsecaseInterface_Authorize_Call

Authorize is a helper method to define mock.On call

  • ctx context.Context
  • state string
  • code string
  • organizationName string

func (*GoogleUserUsecaseInterface_Expecter) GenerateState

GenerateState is a helper method to define mock.On call

  • _a0 context.Context

type GoogleUserUsecaseInterface_GenerateState_Call

type GoogleUserUsecaseInterface_GenerateState_Call struct {
	*mock.Call
}

GoogleUserUsecaseInterface_GenerateState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateState'

func (*GoogleUserUsecaseInterface_GenerateState_Call) Return

func (*GoogleUserUsecaseInterface_GenerateState_Call) Run

func (*GoogleUserUsecaseInterface_GenerateState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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