mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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