mocks

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuditSigner added in v0.27.0

type MockAuditSigner struct {
	mock.Mock
}

MockAuditSigner is an autogenerated mock type for the AuditSigner type

func NewMockAuditSigner added in v0.27.0

func NewMockAuditSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuditSigner

NewMockAuditSigner creates a new instance of MockAuditSigner. 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 (*MockAuditSigner) EXPECT added in v0.27.0

func (*MockAuditSigner) Sign added in v0.27.0

func (_mock *MockAuditSigner) Sign(kekKey []byte, log *domain.AuditLog) ([]byte, error)

Sign provides a mock function for the type MockAuditSigner

func (*MockAuditSigner) Verify added in v0.27.0

func (_mock *MockAuditSigner) Verify(kekKey []byte, log *domain.AuditLog) error

Verify provides a mock function for the type MockAuditSigner

type MockAuditSigner_Expecter added in v0.27.0

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

func (*MockAuditSigner_Expecter) Sign added in v0.27.0

func (_e *MockAuditSigner_Expecter) Sign(kekKey interface{}, log interface{}) *MockAuditSigner_Sign_Call

Sign is a helper method to define mock.On call

  • kekKey []byte
  • log *domain.AuditLog

func (*MockAuditSigner_Expecter) Verify added in v0.27.0

func (_e *MockAuditSigner_Expecter) Verify(kekKey interface{}, log interface{}) *MockAuditSigner_Verify_Call

Verify is a helper method to define mock.On call

  • kekKey []byte
  • log *domain.AuditLog

type MockAuditSigner_Sign_Call added in v0.27.0

type MockAuditSigner_Sign_Call struct {
	*mock.Call
}

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

func (*MockAuditSigner_Sign_Call) Return added in v0.27.0

func (*MockAuditSigner_Sign_Call) Run added in v0.27.0

func (_c *MockAuditSigner_Sign_Call) Run(run func(kekKey []byte, log *domain.AuditLog)) *MockAuditSigner_Sign_Call

func (*MockAuditSigner_Sign_Call) RunAndReturn added in v0.27.0

func (_c *MockAuditSigner_Sign_Call) RunAndReturn(run func(kekKey []byte, log *domain.AuditLog) ([]byte, error)) *MockAuditSigner_Sign_Call

type MockAuditSigner_Verify_Call added in v0.27.0

type MockAuditSigner_Verify_Call struct {
	*mock.Call
}

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

func (*MockAuditSigner_Verify_Call) Return added in v0.27.0

func (*MockAuditSigner_Verify_Call) Run added in v0.27.0

func (_c *MockAuditSigner_Verify_Call) Run(run func(kekKey []byte, log *domain.AuditLog)) *MockAuditSigner_Verify_Call

func (*MockAuditSigner_Verify_Call) RunAndReturn added in v0.27.0

func (_c *MockAuditSigner_Verify_Call) RunAndReturn(run func(kekKey []byte, log *domain.AuditLog) error) *MockAuditSigner_Verify_Call

type MockSecretService

type MockSecretService struct {
	mock.Mock
}

MockSecretService is an autogenerated mock type for the SecretService type

func NewMockSecretService

func NewMockSecretService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSecretService

NewMockSecretService creates a new instance of MockSecretService. 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 (*MockSecretService) CompareSecret

func (_mock *MockSecretService) CompareSecret(plainSecret string, hashedSecret string) bool

CompareSecret provides a mock function for the type MockSecretService

func (*MockSecretService) EXPECT

func (*MockSecretService) GenerateSecret

func (_mock *MockSecretService) GenerateSecret() (string, string, error)

GenerateSecret provides a mock function for the type MockSecretService

func (*MockSecretService) HashSecret

func (_mock *MockSecretService) HashSecret(plainSecret string) (string, error)

HashSecret provides a mock function for the type MockSecretService

type MockSecretService_CompareSecret_Call

type MockSecretService_CompareSecret_Call struct {
	*mock.Call
}

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

func (*MockSecretService_CompareSecret_Call) Return

func (*MockSecretService_CompareSecret_Call) Run

func (_c *MockSecretService_CompareSecret_Call) Run(run func(plainSecret string, hashedSecret string)) *MockSecretService_CompareSecret_Call

func (*MockSecretService_CompareSecret_Call) RunAndReturn

func (_c *MockSecretService_CompareSecret_Call) RunAndReturn(run func(plainSecret string, hashedSecret string) bool) *MockSecretService_CompareSecret_Call

type MockSecretService_Expecter

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

func (*MockSecretService_Expecter) CompareSecret

func (_e *MockSecretService_Expecter) CompareSecret(plainSecret interface{}, hashedSecret interface{}) *MockSecretService_CompareSecret_Call

CompareSecret is a helper method to define mock.On call

  • plainSecret string
  • hashedSecret string

func (*MockSecretService_Expecter) GenerateSecret

GenerateSecret is a helper method to define mock.On call

func (*MockSecretService_Expecter) HashSecret

func (_e *MockSecretService_Expecter) HashSecret(plainSecret interface{}) *MockSecretService_HashSecret_Call

HashSecret is a helper method to define mock.On call

  • plainSecret string

type MockSecretService_GenerateSecret_Call

type MockSecretService_GenerateSecret_Call struct {
	*mock.Call
}

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

func (*MockSecretService_GenerateSecret_Call) Return

func (*MockSecretService_GenerateSecret_Call) Run

func (*MockSecretService_GenerateSecret_Call) RunAndReturn

type MockSecretService_HashSecret_Call

type MockSecretService_HashSecret_Call struct {
	*mock.Call
}

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

func (*MockSecretService_HashSecret_Call) Return

func (*MockSecretService_HashSecret_Call) Run

func (*MockSecretService_HashSecret_Call) RunAndReturn

func (_c *MockSecretService_HashSecret_Call) RunAndReturn(run func(plainSecret string) (string, error)) *MockSecretService_HashSecret_Call

type MockTokenService added in v0.27.0

type MockTokenService struct {
	mock.Mock
}

MockTokenService is an autogenerated mock type for the TokenService type

func NewMockTokenService added in v0.27.0

func NewMockTokenService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenService

NewMockTokenService creates a new instance of MockTokenService. 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 (*MockTokenService) EXPECT added in v0.27.0

func (*MockTokenService) GenerateToken added in v0.27.0

func (_mock *MockTokenService) GenerateToken() (string, string, error)

GenerateToken provides a mock function for the type MockTokenService

func (*MockTokenService) HashToken added in v0.27.0

func (_mock *MockTokenService) HashToken(plainToken string) string

HashToken provides a mock function for the type MockTokenService

type MockTokenService_Expecter added in v0.27.0

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

func (*MockTokenService_Expecter) GenerateToken added in v0.27.0

GenerateToken is a helper method to define mock.On call

func (*MockTokenService_Expecter) HashToken added in v0.27.0

func (_e *MockTokenService_Expecter) HashToken(plainToken interface{}) *MockTokenService_HashToken_Call

HashToken is a helper method to define mock.On call

  • plainToken string

type MockTokenService_GenerateToken_Call added in v0.27.0

type MockTokenService_GenerateToken_Call struct {
	*mock.Call
}

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

func (*MockTokenService_GenerateToken_Call) Return added in v0.27.0

func (*MockTokenService_GenerateToken_Call) Run added in v0.27.0

func (*MockTokenService_GenerateToken_Call) RunAndReturn added in v0.27.0

type MockTokenService_HashToken_Call added in v0.27.0

type MockTokenService_HashToken_Call struct {
	*mock.Call
}

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

func (*MockTokenService_HashToken_Call) Return added in v0.27.0

func (*MockTokenService_HashToken_Call) Run added in v0.27.0

func (*MockTokenService_HashToken_Call) RunAndReturn added in v0.27.0

func (_c *MockTokenService_HashToken_Call) RunAndReturn(run func(plainToken string) string) *MockTokenService_HashToken_Call

Jump to

Keyboard shortcuts

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