test

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package test is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Create

func (m *MockRepository) Create(ctx context.Context, serverID uuid.UUID, condition *condition.Condition) error

Create mocks base method.

func (*MockRepository) CreateMultiple

func (m *MockRepository) CreateMultiple(ctx context.Context, serverID uuid.UUID, conditions ...*condition.Condition) error

CreateMultiple mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, serverID uuid.UUID) (*store.ConditionRecord, error)

Get mocks base method.

func (*MockRepository) GetActiveCondition

func (m *MockRepository) GetActiveCondition(ctx context.Context, serverID uuid.UUID) (*condition.Condition, error)

GetActiveCondition mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, serverID uuid.UUID, condition *condition.Condition) error

Update mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Create

func (mr *MockRepositoryMockRecorder) Create(ctx, serverID, condition interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) CreateMultiple

func (mr *MockRepositoryMockRecorder) CreateMultiple(ctx, serverID interface{}, conditions ...interface{}) *gomock.Call

CreateMultiple indicates an expected call of CreateMultiple.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, serverID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetActiveCondition

func (mr *MockRepositoryMockRecorder) GetActiveCondition(ctx, serverID interface{}) *gomock.Call

GetActiveCondition indicates an expected call of GetActiveCondition.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, serverID, condition interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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