mock_entityservice

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_entityservice is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdapter

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

MockAdapter is a mock of Adapter interface

func NewMockAdapter

func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter

NewMockAdapter creates a new mock instance

func (*MockAdapter) AddDepends

func (m *MockAdapter) AddDepends(arg0 string, arg1 []string) (bool, error)

AddDepends mocks base method

func (*MockAdapter) EXPECT

func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder

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

func (*MockAdapter) GetAll

func (m *MockAdapter) GetAll() ([]entityservice.EntityService, error)

GetAll mocks base method

func (*MockAdapter) GetByID

func (m *MockAdapter) GetByID(arg0 string) (*entityservice.EntityService, error)

GetByID mocks base method

func (*MockAdapter) GetCounters

func (m *MockAdapter) GetCounters(arg0 context.Context, arg1 string) (mongo.Cursor, error)

GetCounters mocks base method

func (*MockAdapter) GetEnabled

func (m *MockAdapter) GetEnabled() ([]entityservice.EntityService, error)

GetEnabled mocks base method

func (*MockAdapter) GetValid

func (m *MockAdapter) GetValid() ([]entityservice.EntityService, error)

GetValid mocks base method

func (*MockAdapter) RemoveDependByQuery

func (m *MockAdapter) RemoveDependByQuery(arg0 interface{}, arg1 string) ([]string, error)

RemoveDependByQuery mocks base method

func (*MockAdapter) RemoveDepends

func (m *MockAdapter) RemoveDepends(arg0 string, arg1 []string) (bool, error)

RemoveDepends mocks base method

func (*MockAdapter) UpdateBulk

func (m *MockAdapter) UpdateBulk(arg0 context.Context, arg1 []mongo0.WriteModel) error

UpdateBulk mocks base method

func (*MockAdapter) UpdateCounters

func (m *MockAdapter) UpdateCounters(arg0 string, arg1 entityservice.AlarmCounters) error

UpdateCounters mocks base method

type MockAdapterMockRecorder

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

MockAdapterMockRecorder is the mock recorder for MockAdapter

func (*MockAdapterMockRecorder) AddDepends

func (mr *MockAdapterMockRecorder) AddDepends(arg0, arg1 interface{}) *gomock.Call

AddDepends indicates an expected call of AddDepends

func (*MockAdapterMockRecorder) GetAll

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

GetAll indicates an expected call of GetAll

func (*MockAdapterMockRecorder) GetByID

func (mr *MockAdapterMockRecorder) GetByID(arg0 interface{}) *gomock.Call

GetByID indicates an expected call of GetByID

func (*MockAdapterMockRecorder) GetCounters

func (mr *MockAdapterMockRecorder) GetCounters(arg0, arg1 interface{}) *gomock.Call

GetCounters indicates an expected call of GetCounters

func (*MockAdapterMockRecorder) GetEnabled

func (mr *MockAdapterMockRecorder) GetEnabled() *gomock.Call

GetEnabled indicates an expected call of GetEnabled

func (*MockAdapterMockRecorder) GetValid

func (mr *MockAdapterMockRecorder) GetValid() *gomock.Call

GetValid indicates an expected call of GetValid

func (*MockAdapterMockRecorder) RemoveDependByQuery

func (mr *MockAdapterMockRecorder) RemoveDependByQuery(arg0, arg1 interface{}) *gomock.Call

RemoveDependByQuery indicates an expected call of RemoveDependByQuery

func (*MockAdapterMockRecorder) RemoveDepends

func (mr *MockAdapterMockRecorder) RemoveDepends(arg0, arg1 interface{}) *gomock.Call

RemoveDepends indicates an expected call of RemoveDepends

func (*MockAdapterMockRecorder) UpdateBulk

func (mr *MockAdapterMockRecorder) UpdateBulk(arg0, arg1 interface{}) *gomock.Call

UpdateBulk indicates an expected call of UpdateBulk

func (*MockAdapterMockRecorder) UpdateCounters

func (mr *MockAdapterMockRecorder) UpdateCounters(arg0, arg1 interface{}) *gomock.Call

UpdateCounters indicates an expected call of UpdateCounters

type MockCountersCache

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

MockCountersCache is a mock of CountersCache interface

func NewMockCountersCache

func NewMockCountersCache(ctrl *gomock.Controller) *MockCountersCache

NewMockCountersCache creates a new mock instance

func (*MockCountersCache) ClearAll

func (m *MockCountersCache) ClearAll(arg0 context.Context) error

ClearAll mocks base method

func (*MockCountersCache) EXPECT

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

func (*MockCountersCache) KeepOnly

func (m *MockCountersCache) KeepOnly(arg0 context.Context, arg1 []string) error

KeepOnly mocks base method

func (*MockCountersCache) Remove

func (m *MockCountersCache) Remove(arg0 context.Context, arg1 string) error

Remove mocks base method

func (*MockCountersCache) RemoveAndGet

func (m *MockCountersCache) RemoveAndGet(arg0 context.Context, arg1 string) (*entityservice.AlarmCounters, error)

RemoveAndGet mocks base method

func (*MockCountersCache) Replace

Replace mocks base method

func (*MockCountersCache) Update

Update mocks base method

type MockCountersCacheMockRecorder

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

MockCountersCacheMockRecorder is the mock recorder for MockCountersCache

func (*MockCountersCacheMockRecorder) ClearAll

func (mr *MockCountersCacheMockRecorder) ClearAll(arg0 interface{}) *gomock.Call

ClearAll indicates an expected call of ClearAll

func (*MockCountersCacheMockRecorder) KeepOnly

func (mr *MockCountersCacheMockRecorder) KeepOnly(arg0, arg1 interface{}) *gomock.Call

KeepOnly indicates an expected call of KeepOnly

func (*MockCountersCacheMockRecorder) Remove

func (mr *MockCountersCacheMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockCountersCacheMockRecorder) RemoveAndGet

func (mr *MockCountersCacheMockRecorder) RemoveAndGet(arg0, arg1 interface{}) *gomock.Call

RemoveAndGet indicates an expected call of RemoveAndGet

func (*MockCountersCacheMockRecorder) Replace

func (mr *MockCountersCacheMockRecorder) Replace(arg0, arg1, arg2 interface{}) *gomock.Call

Replace indicates an expected call of Replace

func (*MockCountersCacheMockRecorder) Update

func (mr *MockCountersCacheMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update

type MockStorage

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

MockStorage is a mock of Storage interface

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance

func (*MockStorage) Delete

func (m *MockStorage) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) Get

Get mocks base method

func (*MockStorage) Load

Load mocks base method

func (*MockStorage) Save

Save mocks base method

func (*MockStorage) SaveAll

func (m *MockStorage) SaveAll(arg0 context.Context, arg1 []entityservice.ServiceData) error

SaveAll mocks base method

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage

func (*MockStorageMockRecorder) Delete

func (mr *MockStorageMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockStorageMockRecorder) Get

func (mr *MockStorageMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockStorageMockRecorder) Load

func (mr *MockStorageMockRecorder) Load(arg0 interface{}) *gomock.Call

Load indicates an expected call of Load

func (*MockStorageMockRecorder) Save

func (mr *MockStorageMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call

Save indicates an expected call of Save

func (*MockStorageMockRecorder) SaveAll

func (mr *MockStorageMockRecorder) SaveAll(arg0, arg1 interface{}) *gomock.Call

SaveAll indicates an expected call of SaveAll

Jump to

Keyboard shortcuts

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