mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 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 AuthNProvider

type AuthNProvider struct {
	mock.Mock
}

AuthNProvider is an autogenerated mock type for the AuthNProvider type

func NewAuthNProvider

func NewAuthNProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthNProvider

NewAuthNProvider creates a new instance of AuthNProvider. 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 (*AuthNProvider) Authenticate

func (_m *AuthNProvider) Authenticate(ctx *gin.Context) (middleware.Principal, error)

Authenticate provides a mock function with given fields: ctx

func (*AuthNProvider) EXPECT

func (_m *AuthNProvider) EXPECT() *AuthNProvider_Expecter

type AuthNProvider_Authenticate_Call

type AuthNProvider_Authenticate_Call struct {
	*mock.Call
}

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

func (*AuthNProvider_Authenticate_Call) Return

func (*AuthNProvider_Authenticate_Call) Run

func (*AuthNProvider_Authenticate_Call) RunAndReturn

type AuthNProvider_Expecter

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

func (*AuthNProvider_Expecter) Authenticate

func (_e *AuthNProvider_Expecter) Authenticate(ctx interface{}) *AuthNProvider_Authenticate_Call

Authenticate is a helper method to define mock.On call

  • ctx *gin.Context

type AuthZProvider

type AuthZProvider struct {
	mock.Mock
}

AuthZProvider is an autogenerated mock type for the AuthZProvider type

func NewAuthZProvider

func NewAuthZProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthZProvider

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

func (_m *AuthZProvider) Authorize(ctx *gin.Context, args ...interface{}) (bool, error)

Authorize provides a mock function with given fields: ctx, args

func (*AuthZProvider) EXPECT

func (_m *AuthZProvider) EXPECT() *AuthZProvider_Expecter

type AuthZProvider_Authorize_Call

type AuthZProvider_Authorize_Call struct {
	*mock.Call
}

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

func (*AuthZProvider_Authorize_Call) Return

func (*AuthZProvider_Authorize_Call) Run

func (_c *AuthZProvider_Authorize_Call) Run(run func(ctx *gin.Context, args ...interface{})) *AuthZProvider_Authorize_Call

func (*AuthZProvider_Authorize_Call) RunAndReturn

func (_c *AuthZProvider_Authorize_Call) RunAndReturn(run func(*gin.Context, ...interface{}) (bool, error)) *AuthZProvider_Authorize_Call

type AuthZProvider_Expecter

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

func (*AuthZProvider_Expecter) Authorize

func (_e *AuthZProvider_Expecter) Authorize(ctx interface{}, args ...interface{}) *AuthZProvider_Authorize_Call

Authorize is a helper method to define mock.On call

  • ctx *gin.Context
  • args ...interface{}

type HealthCheckProvider

type HealthCheckProvider struct {
	mock.Mock
}

HealthCheckProvider is an autogenerated mock type for the HealthCheckProvider type

func NewHealthCheckProvider

func NewHealthCheckProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthCheckProvider

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

func (*HealthCheckProvider) GetName

func (_m *HealthCheckProvider) GetName() string

GetName provides a mock function with given fields:

func (*HealthCheckProvider) HealthCheck

func (_m *HealthCheckProvider) HealthCheck() error

HealthCheck provides a mock function with given fields:

type HealthCheckProvider_Expecter

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

func (*HealthCheckProvider_Expecter) GetName

GetName is a helper method to define mock.On call

func (*HealthCheckProvider_Expecter) HealthCheck

HealthCheck is a helper method to define mock.On call

type HealthCheckProvider_GetName_Call

type HealthCheckProvider_GetName_Call struct {
	*mock.Call
}

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

func (*HealthCheckProvider_GetName_Call) Return

func (*HealthCheckProvider_GetName_Call) Run

func (*HealthCheckProvider_GetName_Call) RunAndReturn

type HealthCheckProvider_HealthCheck_Call

type HealthCheckProvider_HealthCheck_Call struct {
	*mock.Call
}

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

func (*HealthCheckProvider_HealthCheck_Call) Return

func (*HealthCheckProvider_HealthCheck_Call) Run

func (*HealthCheckProvider_HealthCheck_Call) RunAndReturn

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware

func NewMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *Middleware

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

func (_m *Middleware) EXPECT() *Middleware_Expecter

func (*Middleware) GetLogger

func (_m *Middleware) GetLogger() log.Logger

GetLogger provides a mock function with given fields:

func (*Middleware) Priority

func (_m *Middleware) Priority() middleware.MiddlewarePriority

Priority provides a mock function with given fields:

func (*Middleware) Setup

func (_m *Middleware) Setup(httpHandler rest.HTTPHandler)

Setup provides a mock function with given fields: httpHandler

type Middleware_Expecter

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

func (*Middleware_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*Middleware_Expecter) Priority

Priority is a helper method to define mock.On call

func (*Middleware_Expecter) Setup

func (_e *Middleware_Expecter) Setup(httpHandler interface{}) *Middleware_Setup_Call

Setup is a helper method to define mock.On call

  • httpHandler rest.HTTPHandler

type Middleware_GetLogger_Call

type Middleware_GetLogger_Call struct {
	*mock.Call
}

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

func (*Middleware_GetLogger_Call) Return

func (*Middleware_GetLogger_Call) Run

func (*Middleware_GetLogger_Call) RunAndReturn

func (_c *Middleware_GetLogger_Call) RunAndReturn(run func() log.Logger) *Middleware_GetLogger_Call

type Middleware_Priority_Call

type Middleware_Priority_Call struct {
	*mock.Call
}

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

func (*Middleware_Priority_Call) Return

func (*Middleware_Priority_Call) Run

func (*Middleware_Priority_Call) RunAndReturn

type Middleware_Setup_Call

type Middleware_Setup_Call struct {
	*mock.Call
}

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

func (*Middleware_Setup_Call) Return

func (*Middleware_Setup_Call) Run

func (_c *Middleware_Setup_Call) Run(run func(httpHandler rest.HTTPHandler)) *Middleware_Setup_Call

func (*Middleware_Setup_Call) RunAndReturn

func (_c *Middleware_Setup_Call) RunAndReturn(run func(rest.HTTPHandler)) *Middleware_Setup_Call

type Principal

type Principal struct {
	mock.Mock
}

Principal is an autogenerated mock type for the Principal type

func NewPrincipal

func NewPrincipal(t interface {
	mock.TestingT
	Cleanup(func())
}) *Principal

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

func (_m *Principal) EXPECT() *Principal_Expecter

func (*Principal) GetEmail

func (_m *Principal) GetEmail() string

GetEmail provides a mock function with given fields:

func (*Principal) GetID

func (_m *Principal) GetID() interface{}

GetID provides a mock function with given fields:

func (*Principal) GetName

func (_m *Principal) GetName() string

GetName provides a mock function with given fields:

func (*Principal) GetType

func (_m *Principal) GetType() middleware.PrincipalType

GetType provides a mock function with given fields:

type Principal_Expecter

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

func (*Principal_Expecter) GetEmail

GetEmail is a helper method to define mock.On call

func (*Principal_Expecter) GetID

GetID is a helper method to define mock.On call

func (*Principal_Expecter) GetName

GetName is a helper method to define mock.On call

func (*Principal_Expecter) GetType

GetType is a helper method to define mock.On call

type Principal_GetEmail_Call

type Principal_GetEmail_Call struct {
	*mock.Call
}

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

func (*Principal_GetEmail_Call) Return

func (*Principal_GetEmail_Call) Run

func (_c *Principal_GetEmail_Call) Run(run func()) *Principal_GetEmail_Call

func (*Principal_GetEmail_Call) RunAndReturn

func (_c *Principal_GetEmail_Call) RunAndReturn(run func() string) *Principal_GetEmail_Call

type Principal_GetID_Call

type Principal_GetID_Call struct {
	*mock.Call
}

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

func (*Principal_GetID_Call) Return

func (_c *Principal_GetID_Call) Return(_a0 interface{}) *Principal_GetID_Call

func (*Principal_GetID_Call) Run

func (_c *Principal_GetID_Call) Run(run func()) *Principal_GetID_Call

func (*Principal_GetID_Call) RunAndReturn

func (_c *Principal_GetID_Call) RunAndReturn(run func() interface{}) *Principal_GetID_Call

type Principal_GetName_Call

type Principal_GetName_Call struct {
	*mock.Call
}

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

func (*Principal_GetName_Call) Return

func (*Principal_GetName_Call) Run

func (_c *Principal_GetName_Call) Run(run func()) *Principal_GetName_Call

func (*Principal_GetName_Call) RunAndReturn

func (_c *Principal_GetName_Call) RunAndReturn(run func() string) *Principal_GetName_Call

type Principal_GetType_Call

type Principal_GetType_Call struct {
	*mock.Call
}

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

func (*Principal_GetType_Call) Return

func (*Principal_GetType_Call) Run

func (_c *Principal_GetType_Call) Run(run func()) *Principal_GetType_Call

func (*Principal_GetType_Call) RunAndReturn

type ReadyCheckProvider

type ReadyCheckProvider struct {
	mock.Mock
}

ReadyCheckProvider is an autogenerated mock type for the ReadyCheckProvider type

func NewReadyCheckProvider

func NewReadyCheckProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadyCheckProvider

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

func (*ReadyCheckProvider) GetName

func (_m *ReadyCheckProvider) GetName() string

GetName provides a mock function with given fields:

func (*ReadyCheckProvider) ReadyCheck

func (_m *ReadyCheckProvider) ReadyCheck() error

ReadyCheck provides a mock function with given fields:

type ReadyCheckProvider_Expecter

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

func (*ReadyCheckProvider_Expecter) GetName

GetName is a helper method to define mock.On call

func (*ReadyCheckProvider_Expecter) ReadyCheck

ReadyCheck is a helper method to define mock.On call

type ReadyCheckProvider_GetName_Call

type ReadyCheckProvider_GetName_Call struct {
	*mock.Call
}

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

func (*ReadyCheckProvider_GetName_Call) Return

func (*ReadyCheckProvider_GetName_Call) Run

func (*ReadyCheckProvider_GetName_Call) RunAndReturn

type ReadyCheckProvider_ReadyCheck_Call

type ReadyCheckProvider_ReadyCheck_Call struct {
	*mock.Call
}

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

func (*ReadyCheckProvider_ReadyCheck_Call) Return

func (*ReadyCheckProvider_ReadyCheck_Call) Run

func (*ReadyCheckProvider_ReadyCheck_Call) RunAndReturn

Jump to

Keyboard shortcuts

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