mock_storage

package
Version: v0.0.0-...-b8a43e3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInfo

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

MockInfo is a mock of Info interface

func NewMockInfo

func NewMockInfo(ctrl *gomock.Controller) *MockInfo

NewMockInfo creates a new mock instance

func (*MockInfo) EXPECT

func (m *MockInfo) EXPECT() *MockInfoMockRecorder

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

func (*MockInfo) GetLastTimestamp

func (m *MockInfo) GetLastTimestamp() uint64

GetLastTimestamp mocks base method

func (*MockInfo) SetLastTimestamp

func (m *MockInfo) SetLastTimestamp(arg0 uint64)

SetLastTimestamp mocks base method

type MockInfoMockRecorder

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

MockInfoMockRecorder is the mock recorder for MockInfo

func (*MockInfoMockRecorder) GetLastTimestamp

func (mr *MockInfoMockRecorder) GetLastTimestamp() *gomock.Call

GetLastTimestamp indicates an expected call of GetLastTimestamp

func (*MockInfoMockRecorder) SetLastTimestamp

func (mr *MockInfoMockRecorder) SetLastTimestamp(arg0 interface{}) *gomock.Call

SetLastTimestamp indicates an expected call of SetLastTimestamp

type MockStorage

type MockStorage struct {
	*MockUser
	*MockSubscription
	*MockInfo
}

MockStorage mocks storage

func NewMockStorage

func NewMockStorage(c *gomock.Controller) *MockStorage

NewMockStorage constructor for mock storage

type MockSubscription

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

MockSubscription is a mock of Subscription interface

func NewMockSubscription

func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription

NewMockSubscription creates a new mock instance

func (*MockSubscription) Add

func (m *MockSubscription) Add(arg0 *logic.User, arg1 *logic.Publication) error

Add mocks base method

func (*MockSubscription) AddDefault

func (m *MockSubscription) AddDefault(arg0 *logic.Publication) error

AddDefault mocks base method

func (*MockSubscription) Connect

func (m *MockSubscription) Connect(arg0 *logic.User, arg1 *logic.Publication) error

Connect mocks base method

func (*MockSubscription) Disonnect

func (m *MockSubscription) Disonnect(arg0 *logic.User, arg1 *logic.Publication) error

Disonnect mocks base method

func (*MockSubscription) EXPECT

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

func (*MockSubscription) GetAllDefaultSubs

func (m *MockSubscription) GetAllDefaultSubs() []logic.Publication

GetAllDefaultSubs mocks base method

func (*MockSubscription) GetAllSubs

func (m *MockSubscription) GetAllSubs() []logic.Publication

GetAllSubs mocks base method

func (*MockSubscription) GetSubsByUser

func (m *MockSubscription) GetSubsByUser(arg0 *logic.User) ([]logic.Publication, error)

GetSubsByUser mocks base method

func (*MockSubscription) Remove

func (m *MockSubscription) Remove(arg0 *logic.Publication) error

Remove mocks base method

func (*MockSubscription) Update

func (m *MockSubscription) Update(arg0 *logic.User, arg1 *logic.Publication) error

Update mocks base method

type MockSubscriptionMockRecorder

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

MockSubscriptionMockRecorder is the mock recorder for MockSubscription

func (*MockSubscriptionMockRecorder) Add

func (mr *MockSubscriptionMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockSubscriptionMockRecorder) AddDefault

func (mr *MockSubscriptionMockRecorder) AddDefault(arg0 interface{}) *gomock.Call

AddDefault indicates an expected call of AddDefault

func (*MockSubscriptionMockRecorder) Connect

func (mr *MockSubscriptionMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call

Connect indicates an expected call of Connect

func (*MockSubscriptionMockRecorder) Disonnect

func (mr *MockSubscriptionMockRecorder) Disonnect(arg0, arg1 interface{}) *gomock.Call

Disonnect indicates an expected call of Disonnect

func (*MockSubscriptionMockRecorder) GetAllDefaultSubs

func (mr *MockSubscriptionMockRecorder) GetAllDefaultSubs() *gomock.Call

GetAllDefaultSubs indicates an expected call of GetAllDefaultSubs

func (*MockSubscriptionMockRecorder) GetAllSubs

func (mr *MockSubscriptionMockRecorder) GetAllSubs() *gomock.Call

GetAllSubs indicates an expected call of GetAllSubs

func (*MockSubscriptionMockRecorder) GetSubsByUser

func (mr *MockSubscriptionMockRecorder) GetSubsByUser(arg0 interface{}) *gomock.Call

GetSubsByUser indicates an expected call of GetSubsByUser

func (*MockSubscriptionMockRecorder) Remove

func (mr *MockSubscriptionMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockSubscriptionMockRecorder) Update

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

Update indicates an expected call of Update

type MockUser

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

MockUser is a mock of User interface

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) GetUserByChatID

func (m *MockUser) GetUserByChatID(arg0 int64) (*logic.User, error)

GetUserByChatID mocks base method

func (*MockUser) GetUserByID

func (m *MockUser) GetUserByID(arg0 int64) (*logic.User, error)

GetUserByID mocks base method

func (*MockUser) GetUsersByPublication

func (m *MockUser) GetUsersByPublication(arg0 *logic.Publication) ([]logic.User, error)

GetUsersByPublication mocks base method

func (*MockUser) IsChatAdmin

func (m *MockUser) IsChatAdmin(arg0 int64) bool

IsChatAdmin mocks base method

func (*MockUser) IsUserAdmin

func (m *MockUser) IsUserAdmin(arg0 *logic.User) bool

IsUserAdmin mocks base method

func (*MockUser) Register

func (m *MockUser) Register(arg0 *logic.User) error

Register mocks base method

func (*MockUser) Unregister

func (m *MockUser) Unregister(arg0 *logic.User) error

Unregister mocks base method

func (*MockUser) Update

func (m *MockUser) Update(arg0 *logic.User) error

Update mocks base method

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser

func (*MockUserMockRecorder) GetUserByChatID

func (mr *MockUserMockRecorder) GetUserByChatID(arg0 interface{}) *gomock.Call

GetUserByChatID indicates an expected call of GetUserByChatID

func (*MockUserMockRecorder) GetUserByID

func (mr *MockUserMockRecorder) GetUserByID(arg0 interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID

func (*MockUserMockRecorder) GetUsersByPublication

func (mr *MockUserMockRecorder) GetUsersByPublication(arg0 interface{}) *gomock.Call

GetUsersByPublication indicates an expected call of GetUsersByPublication

func (*MockUserMockRecorder) IsChatAdmin

func (mr *MockUserMockRecorder) IsChatAdmin(arg0 interface{}) *gomock.Call

IsChatAdmin indicates an expected call of IsChatAdmin

func (*MockUserMockRecorder) IsUserAdmin

func (mr *MockUserMockRecorder) IsUserAdmin(arg0 interface{}) *gomock.Call

IsUserAdmin indicates an expected call of IsUserAdmin

func (*MockUserMockRecorder) Register

func (mr *MockUserMockRecorder) Register(arg0 interface{}) *gomock.Call

Register indicates an expected call of Register

func (*MockUserMockRecorder) Unregister

func (mr *MockUserMockRecorder) Unregister(arg0 interface{}) *gomock.Call

Unregister indicates an expected call of Unregister

func (*MockUserMockRecorder) Update

func (mr *MockUserMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL