mocks

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 3 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) AuthenticateUser

func (_mock *Authenticator) AuthenticateUser(ctx context.Context, role auth.UserRole) (context.Context, error)

AuthenticateUser provides a mock function for the type Authenticator

func (*Authenticator) EXPECT

func (_m *Authenticator) EXPECT() *Authenticator_Expecter

type Authenticator_AuthenticateUser_Call

type Authenticator_AuthenticateUser_Call struct {
	*mock.Call
}

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

func (*Authenticator_AuthenticateUser_Call) Return

func (*Authenticator_AuthenticateUser_Call) Run

func (*Authenticator_AuthenticateUser_Call) RunAndReturn

type Authenticator_Expecter

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

func (*Authenticator_Expecter) AuthenticateUser

func (_e *Authenticator_Expecter) AuthenticateUser(ctx interface{}, role interface{}) *Authenticator_AuthenticateUser_Call

AuthenticateUser is a helper method to define mock.On call

  • ctx context.Context
  • role auth.UserRole

Jump to

Keyboard shortcuts

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