mock_controller

package
v0.0.0-...-077edd7 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_controller is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockController

type MockController struct {
	*MockInfo
	*MockUser
	*MockSubscription
}

MockController mocks controller

func NewMockController

func NewMockController(c *gomock.Controller) *MockController

NewMockController constructor for mock controller

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 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) AddNew

func (m *MockSubscription) AddNew(arg0 int64, arg1 string) error

AddNew mocks base method

func (*MockSubscription) Create

func (m *MockSubscription) Create(arg0 int64, arg1 string) error

Create 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) GetSubsByChatID

func (m *MockSubscription) GetSubsByChatID(arg0 int64) ([]logic.Publication, error)

GetSubsByChatID mocks base method

func (*MockSubscription) Remove

func (m *MockSubscription) Remove(arg0 int64, arg1 string) error

Remove mocks base method

func (*MockSubscription) RemoveDefault

func (m *MockSubscription) RemoveDefault(arg0 int64, arg1 string) error

RemoveDefault mocks base method

func (*MockSubscription) Subscribe

func (m *MockSubscription) Subscribe(arg0 int64, arg1 string) error

Subscribe mocks base method

func (*MockSubscription) Update

func (m *MockSubscription) Update(arg0 int64, arg1 string) error

Update mocks base method

type MockSubscriptionMockRecorder

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

MockSubscriptionMockRecorder is the mock recorder for MockSubscription

func (*MockSubscriptionMockRecorder) AddNew

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

AddNew indicates an expected call of AddNew

func (*MockSubscriptionMockRecorder) Create

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

Create indicates an expected call of Create

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) GetSubsByChatID

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

GetSubsByChatID indicates an expected call of GetSubsByChatID

func (*MockSubscriptionMockRecorder) Remove

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

Remove indicates an expected call of Remove

func (*MockSubscriptionMockRecorder) RemoveDefault

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

RemoveDefault indicates an expected call of RemoveDefault

func (*MockSubscriptionMockRecorder) Subscribe

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

Subscribe indicates an expected call of Subscribe

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) GetUsersByPublication

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

GetUsersByPublication mocks base method

func (*MockUser) Register

func (m *MockUser) Register(arg0 int64) error

Register mocks base method

func (*MockUser) Unregister

func (m *MockUser) Unregister(arg0 int64) error

Unregister mocks base method

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser

func (*MockUserMockRecorder) GetUsersByPublication

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

GetUsersByPublication indicates an expected call of GetUsersByPublication

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

Directories

Path Synopsis
Package mock_telegram is a generated GoMock package.
Package mock_telegram is a generated GoMock package.
Package mock_downloader is a generated GoMock package.
Package mock_downloader is a generated GoMock package.

Jump to

Keyboard shortcuts

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