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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func NewAuthenticator

func NewAuthenticator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Authenticator

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

func (_m *Authenticator) EXPECT() *Authenticator_Expecter

func (*Authenticator) IsValid

func (_m *Authenticator) IsValid(ginCtx *gin.Context) (bool, error)

IsValid provides a mock function with given fields: ginCtx

type Authenticator_Expecter

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

func (*Authenticator_Expecter) IsValid

func (_e *Authenticator_Expecter) IsValid(ginCtx interface{}) *Authenticator_IsValid_Call

IsValid is a helper method to define mock.On call

  • ginCtx *gin.Context

type Authenticator_IsValid_Call

type Authenticator_IsValid_Call struct {
	*mock.Call
}

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

func (*Authenticator_IsValid_Call) Return

func (*Authenticator_IsValid_Call) Run

func (*Authenticator_IsValid_Call) RunAndReturn

type JwtTokenHandler

type JwtTokenHandler struct {
	mock.Mock
}

JwtTokenHandler is an autogenerated mock type for the JwtTokenHandler type

func NewJwtTokenHandler

func NewJwtTokenHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *JwtTokenHandler

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

func (*JwtTokenHandler) Sign

func (_m *JwtTokenHandler) Sign(user auth.SignUserInput) (*string, error)

Sign provides a mock function with given fields: user

func (*JwtTokenHandler) SignClaims added in v0.21.3

func (_m *JwtTokenHandler) SignClaims(claims auth.Claims) (*string, error)

SignClaims provides a mock function with given fields: claims

func (*JwtTokenHandler) Valid

func (_m *JwtTokenHandler) Valid(jwtToken string) (bool, *jwt.Token, error)

Valid provides a mock function with given fields: jwtToken

type JwtTokenHandler_Expecter

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

func (*JwtTokenHandler_Expecter) Sign

func (_e *JwtTokenHandler_Expecter) Sign(user interface{}) *JwtTokenHandler_Sign_Call

Sign is a helper method to define mock.On call

  • user auth.SignUserInput

func (*JwtTokenHandler_Expecter) SignClaims added in v0.21.3

func (_e *JwtTokenHandler_Expecter) SignClaims(claims interface{}) *JwtTokenHandler_SignClaims_Call

SignClaims is a helper method to define mock.On call

  • claims auth.Claims

func (*JwtTokenHandler_Expecter) Valid

func (_e *JwtTokenHandler_Expecter) Valid(jwtToken interface{}) *JwtTokenHandler_Valid_Call

Valid is a helper method to define mock.On call

  • jwtToken string

type JwtTokenHandler_SignClaims_Call added in v0.21.3

type JwtTokenHandler_SignClaims_Call struct {
	*mock.Call
}

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

func (*JwtTokenHandler_SignClaims_Call) Return added in v0.21.3

func (*JwtTokenHandler_SignClaims_Call) Run added in v0.21.3

func (*JwtTokenHandler_SignClaims_Call) RunAndReturn added in v0.21.3

type JwtTokenHandler_Sign_Call

type JwtTokenHandler_Sign_Call struct {
	*mock.Call
}

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

func (*JwtTokenHandler_Sign_Call) Return

func (*JwtTokenHandler_Sign_Call) Run

func (*JwtTokenHandler_Sign_Call) RunAndReturn

type JwtTokenHandler_Valid_Call

type JwtTokenHandler_Valid_Call struct {
	*mock.Call
}

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

func (*JwtTokenHandler_Valid_Call) Return

func (*JwtTokenHandler_Valid_Call) Run

func (_c *JwtTokenHandler_Valid_Call) Run(run func(jwtToken string)) *JwtTokenHandler_Valid_Call

func (*JwtTokenHandler_Valid_Call) RunAndReturn

type TokenInfoProvider

type TokenInfoProvider struct {
	mock.Mock
}

TokenInfoProvider is an autogenerated mock type for the TokenInfoProvider type

func NewTokenInfoProvider

func NewTokenInfoProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenInfoProvider

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

func (*TokenInfoProvider) GetTokenInfo

func (_m *TokenInfoProvider) GetTokenInfo(_a0 string) (*oauth2.Tokeninfo, error)

GetTokenInfo provides a mock function with given fields: _a0

type TokenInfoProvider_Expecter

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

func (*TokenInfoProvider_Expecter) GetTokenInfo

func (_e *TokenInfoProvider_Expecter) GetTokenInfo(_a0 interface{}) *TokenInfoProvider_GetTokenInfo_Call

GetTokenInfo is a helper method to define mock.On call

  • _a0 string

type TokenInfoProvider_GetTokenInfo_Call

type TokenInfoProvider_GetTokenInfo_Call struct {
	*mock.Call
}

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

func (*TokenInfoProvider_GetTokenInfo_Call) Return

func (*TokenInfoProvider_GetTokenInfo_Call) Run

func (*TokenInfoProvider_GetTokenInfo_Call) RunAndReturn

Jump to

Keyboard shortcuts

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