mock_config

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/robgonnella/ops/internal/config (interfaces: Repo,Service)

Generated by this command:

mockgen -destination=../mock/config/mock_config.go -package=mock_config . Repo,Service

Package mock_config is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepo

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

MockRepo is a mock of Repo interface.

func NewMockRepo

func NewMockRepo(ctrl *gomock.Controller) *MockRepo

NewMockRepo creates a new mock instance.

func (*MockRepo) Create

func (m *MockRepo) Create(arg0 *config.Config) (*config.Config, error)

Create mocks base method.

func (*MockRepo) Delete

func (m *MockRepo) Delete(arg0 string) error

Delete mocks base method.

func (*MockRepo) EXPECT

func (m *MockRepo) EXPECT() *MockRepoMockRecorder

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

func (*MockRepo) Get

func (m *MockRepo) Get(arg0 string) (*config.Config, error)

Get mocks base method.

func (*MockRepo) GetAll

func (m *MockRepo) GetAll() ([]*config.Config, error)

GetAll mocks base method.

func (*MockRepo) GetByInterface added in v1.2.0

func (m *MockRepo) GetByInterface(arg0 string) (*config.Config, error)

GetByInterface mocks base method.

func (*MockRepo) Update

func (m *MockRepo) Update(arg0 *config.Config) (*config.Config, error)

Update mocks base method.

type MockRepoMockRecorder

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

MockRepoMockRecorder is the mock recorder for MockRepo.

func (*MockRepoMockRecorder) Create

func (mr *MockRepoMockRecorder) Create(arg0 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepoMockRecorder) Delete

func (mr *MockRepoMockRecorder) Delete(arg0 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepoMockRecorder) Get

func (mr *MockRepoMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepoMockRecorder) GetAll

func (mr *MockRepoMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockRepoMockRecorder) GetByInterface added in v1.2.0

func (mr *MockRepoMockRecorder) GetByInterface(arg0 any) *gomock.Call

GetByInterface indicates an expected call of GetByInterface.

func (*MockRepoMockRecorder) Update

func (mr *MockRepoMockRecorder) Update(arg0 any) *gomock.Call

Update indicates an expected call of Update.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) Create

func (m *MockService) Create(arg0 *config.Config) (*config.Config, error)

Create mocks base method.

func (*MockService) Delete

func (m *MockService) Delete(arg0 string) error

Delete mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) Get

func (m *MockService) Get(arg0 string) (*config.Config, error)

Get mocks base method.

func (*MockService) GetAll

func (m *MockService) GetAll() ([]*config.Config, error)

GetAll mocks base method.

func (*MockService) GetByInterface added in v1.2.0

func (m *MockService) GetByInterface(arg0 string) (*config.Config, error)

GetByInterface mocks base method.

func (*MockService) Update

func (m *MockService) Update(arg0 *config.Config) (*config.Config, error)

Update mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Create

func (mr *MockServiceMockRecorder) Create(arg0 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockServiceMockRecorder) Delete

func (mr *MockServiceMockRecorder) Delete(arg0 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockServiceMockRecorder) Get

func (mr *MockServiceMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockServiceMockRecorder) GetAll

func (mr *MockServiceMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockServiceMockRecorder) GetByInterface added in v1.2.0

func (mr *MockServiceMockRecorder) GetByInterface(arg0 any) *gomock.Call

GetByInterface indicates an expected call of GetByInterface.

func (*MockServiceMockRecorder) Update

func (mr *MockServiceMockRecorder) Update(arg0 any) *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