mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKekRepository

type MockKekRepository struct {
	mock.Mock
}

MockKekRepository is an autogenerated mock type for the KekRepository type

func NewMockKekRepository

func NewMockKekRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockKekRepository

NewMockKekRepository creates a new instance of MockKekRepository. 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 (*MockKekRepository) Create

func (_mock *MockKekRepository) Create(ctx context.Context, kek *domain.Kek) error

Create provides a mock function for the type MockKekRepository

func (*MockKekRepository) EXPECT

func (*MockKekRepository) List

func (_mock *MockKekRepository) List(ctx context.Context) ([]*domain.Kek, error)

List provides a mock function for the type MockKekRepository

func (*MockKekRepository) Update

func (_mock *MockKekRepository) Update(ctx context.Context, kek *domain.Kek) error

Update provides a mock function for the type MockKekRepository

type MockKekRepository_Create_Call

type MockKekRepository_Create_Call struct {
	*mock.Call
}

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

func (*MockKekRepository_Create_Call) Return

func (*MockKekRepository_Create_Call) Run

func (*MockKekRepository_Create_Call) RunAndReturn

type MockKekRepository_Expecter

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

func (*MockKekRepository_Expecter) Create

func (_e *MockKekRepository_Expecter) Create(ctx interface{}, kek interface{}) *MockKekRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • kek *domain.Kek

func (*MockKekRepository_Expecter) List

func (_e *MockKekRepository_Expecter) List(ctx interface{}) *MockKekRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

func (*MockKekRepository_Expecter) Update

func (_e *MockKekRepository_Expecter) Update(ctx interface{}, kek interface{}) *MockKekRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • kek *domain.Kek

type MockKekRepository_List_Call

type MockKekRepository_List_Call struct {
	*mock.Call
}

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

func (*MockKekRepository_List_Call) Return

func (*MockKekRepository_List_Call) Run

func (*MockKekRepository_List_Call) RunAndReturn

type MockKekRepository_Update_Call

type MockKekRepository_Update_Call struct {
	*mock.Call
}

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

func (*MockKekRepository_Update_Call) Return

func (*MockKekRepository_Update_Call) Run

func (*MockKekRepository_Update_Call) RunAndReturn

type MockKekUseCase

type MockKekUseCase struct {
	mock.Mock
}

MockKekUseCase is an autogenerated mock type for the KekUseCase type

func NewMockKekUseCase

func NewMockKekUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockKekUseCase

NewMockKekUseCase creates a new instance of MockKekUseCase. 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 (*MockKekUseCase) Create

func (_mock *MockKekUseCase) Create(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error

Create provides a mock function for the type MockKekUseCase

func (*MockKekUseCase) EXPECT

func (*MockKekUseCase) Rotate

func (_mock *MockKekUseCase) Rotate(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error

Rotate provides a mock function for the type MockKekUseCase

func (*MockKekUseCase) Unwrap

func (_mock *MockKekUseCase) Unwrap(ctx context.Context, masterKeyChain *domain.MasterKeyChain) (*domain.KekChain, error)

Unwrap provides a mock function for the type MockKekUseCase

type MockKekUseCase_Create_Call

type MockKekUseCase_Create_Call struct {
	*mock.Call
}

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

func (*MockKekUseCase_Create_Call) Return

func (*MockKekUseCase_Create_Call) Run

func (*MockKekUseCase_Create_Call) RunAndReturn

func (_c *MockKekUseCase_Create_Call) RunAndReturn(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error) *MockKekUseCase_Create_Call

type MockKekUseCase_Expecter

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

func (*MockKekUseCase_Expecter) Create

func (_e *MockKekUseCase_Expecter) Create(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • masterKeyChain *domain.MasterKeyChain
  • alg domain.Algorithm

func (*MockKekUseCase_Expecter) Rotate

func (_e *MockKekUseCase_Expecter) Rotate(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Rotate_Call

Rotate is a helper method to define mock.On call

  • ctx context.Context
  • masterKeyChain *domain.MasterKeyChain
  • alg domain.Algorithm

func (*MockKekUseCase_Expecter) Unwrap

func (_e *MockKekUseCase_Expecter) Unwrap(ctx interface{}, masterKeyChain interface{}) *MockKekUseCase_Unwrap_Call

Unwrap is a helper method to define mock.On call

  • ctx context.Context
  • masterKeyChain *domain.MasterKeyChain

type MockKekUseCase_Rotate_Call

type MockKekUseCase_Rotate_Call struct {
	*mock.Call
}

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

func (*MockKekUseCase_Rotate_Call) Return

func (*MockKekUseCase_Rotate_Call) Run

func (*MockKekUseCase_Rotate_Call) RunAndReturn

func (_c *MockKekUseCase_Rotate_Call) RunAndReturn(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain, alg domain.Algorithm) error) *MockKekUseCase_Rotate_Call

type MockKekUseCase_Unwrap_Call

type MockKekUseCase_Unwrap_Call struct {
	*mock.Call
}

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

func (*MockKekUseCase_Unwrap_Call) Return

func (*MockKekUseCase_Unwrap_Call) Run

func (*MockKekUseCase_Unwrap_Call) RunAndReturn

func (_c *MockKekUseCase_Unwrap_Call) RunAndReturn(run func(ctx context.Context, masterKeyChain *domain.MasterKeyChain) (*domain.KekChain, error)) *MockKekUseCase_Unwrap_Call

Jump to

Keyboard shortcuts

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