mock

package
v0.0.0-...-eaa30f2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRuleRepo

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

MockRuleRepo is a mock of RuleRepo interface

func NewMockRuleRepo

func NewMockRuleRepo(ctrl *gomock.Controller) *MockRuleRepo

NewMockRuleRepo creates a new mock instance

func (*MockRuleRepo) Delete

func (m *MockRuleRepo) Delete(ctx context.Context, id int64) error

Delete mocks base method

func (*MockRuleRepo) EXPECT

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

func (*MockRuleRepo) Find

func (m *MockRuleRepo) Find(ctx context.Context, id int64) (*repository.Rule, error)

Find mocks base method

func (*MockRuleRepo) Insert

func (m *MockRuleRepo) Insert(ctx context.Context, rule repository.Rule) (int64, error)

Insert mocks base method

func (*MockRuleRepo) List

func (m *MockRuleRepo) List(ctx context.Context) ([]*repository.Rule, error)

List mocks base method

func (*MockRuleRepo) Update

func (m *MockRuleRepo) Update(ctx context.Context, rule repository.Rule) error

Update mocks base method

type MockRuleRepoMockRecorder

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

MockRuleRepoMockRecorder is the mock recorder for MockRuleRepo

func (*MockRuleRepoMockRecorder) Delete

func (mr *MockRuleRepoMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockRuleRepoMockRecorder) Find

func (mr *MockRuleRepoMockRecorder) Find(ctx, id interface{}) *gomock.Call

Find indicates an expected call of Find

func (*MockRuleRepoMockRecorder) Insert

func (mr *MockRuleRepoMockRecorder) Insert(ctx, rule interface{}) *gomock.Call

Insert indicates an expected call of Insert

func (*MockRuleRepoMockRecorder) List

func (mr *MockRuleRepoMockRecorder) List(ctx interface{}) *gomock.Call

List indicates an expected call of List

func (*MockRuleRepoMockRecorder) Update

func (mr *MockRuleRepoMockRecorder) Update(ctx, rule interface{}) *gomock.Call

Update indicates an expected call of Update

type MockRuleStoreService

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

MockRuleStoreService is a mock of RuleStoreService interface

func NewMockRuleStoreService

func NewMockRuleStoreService(ctrl *gomock.Controller) *MockRuleStoreService

NewMockRuleStoreService creates a new mock instance

func (*MockRuleStoreService) AddURL

func (m *MockRuleStoreService) AddURL(id int, key string)

AddURL mocks base method

func (*MockRuleStoreService) DeleteURL

func (m *MockRuleStoreService) DeleteURL(id int) bool

DeleteURL mocks base method

func (*MockRuleStoreService) EXPECT

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

func (*MockRuleStoreService) GetURL

func (m *MockRuleStoreService) GetURL(path string) (int, service.VarMap)

GetURL mocks base method

func (*MockRuleStoreService) UpdateURL

func (m *MockRuleStoreService) UpdateURL(id int, key string)

UpdateURL mocks base method

type MockRuleStoreServiceMockRecorder

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

MockRuleStoreServiceMockRecorder is the mock recorder for MockRuleStoreService

func (*MockRuleStoreServiceMockRecorder) AddURL

func (mr *MockRuleStoreServiceMockRecorder) AddURL(id, key interface{}) *gomock.Call

AddURL indicates an expected call of AddURL

func (*MockRuleStoreServiceMockRecorder) DeleteURL

func (mr *MockRuleStoreServiceMockRecorder) DeleteURL(id interface{}) *gomock.Call

DeleteURL indicates an expected call of DeleteURL

func (*MockRuleStoreServiceMockRecorder) GetURL

func (mr *MockRuleStoreServiceMockRecorder) GetURL(path interface{}) *gomock.Call

GetURL indicates an expected call of GetURL

func (*MockRuleStoreServiceMockRecorder) UpdateURL

func (mr *MockRuleStoreServiceMockRecorder) UpdateURL(id, key interface{}) *gomock.Call

UpdateURL indicates an expected call of UpdateURL

type MockURLStore

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

MockURLStore is a mock of URLStore interface

func NewMockURLStore

func NewMockURLStore(ctrl *gomock.Controller) *MockURLStore

NewMockURLStore creates a new mock instance

func (*MockURLStore) Add

func (m *MockURLStore) Add(id int, key string, data interface{}) int

Add mocks base method

func (*MockURLStore) Count

func (m *MockURLStore) Count() int

Count mocks base method

func (*MockURLStore) Delete

func (m *MockURLStore) Delete(id int) bool

Delete mocks base method

func (*MockURLStore) EXPECT

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

func (*MockURLStore) Get

func (m *MockURLStore) Get(path string, pvalues []string) (interface{}, []string)

Get mocks base method

func (*MockURLStore) String

func (m *MockURLStore) String() string

String mocks base method

type MockURLStoreMockRecorder

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

MockURLStoreMockRecorder is the mock recorder for MockURLStore

func (*MockURLStoreMockRecorder) Add

func (mr *MockURLStoreMockRecorder) Add(id, key, data interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockURLStoreMockRecorder) Count

func (mr *MockURLStoreMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count

func (*MockURLStoreMockRecorder) Delete

func (mr *MockURLStoreMockRecorder) Delete(id interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockURLStoreMockRecorder) Get

func (mr *MockURLStoreMockRecorder) Get(path, pvalues interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockURLStoreMockRecorder) String

func (mr *MockURLStoreMockRecorder) String() *gomock.Call

String indicates an expected call of String

Jump to

Keyboard shortcuts

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