mock_database

package
v0.0.0-...-a4ed614 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_database is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProjectChatDB

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

MockProjectChatDB is a mock of ProjectChatDB interface.

func NewMockProjectChatDB

func NewMockProjectChatDB(ctrl *gomock.Controller) *MockProjectChatDB

NewMockProjectChatDB creates a new mock instance.

func (*MockProjectChatDB) EXPECT

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

func (*MockProjectChatDB) Read

func (m *MockProjectChatDB) Read(ctx context.Context, projectId uint64) ([]*database.Message, error)

Read mocks base method.

func (*MockProjectChatDB) Save

func (m *MockProjectChatDB) Save(ctx context.Context, message *database.Message) error

Save mocks base method.

type MockProjectChatDBMockRecorder

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

MockProjectChatDBMockRecorder is the mock recorder for MockProjectChatDB.

func (*MockProjectChatDBMockRecorder) Read

func (mr *MockProjectChatDBMockRecorder) Read(ctx, projectId interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockProjectChatDBMockRecorder) Save

func (mr *MockProjectChatDBMockRecorder) Save(ctx, message interface{}) *gomock.Call

Save indicates an expected call of Save.

type MockProjectManager

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

MockProjectManager is a mock of ProjectManager interface.

func NewMockProjectManager

func NewMockProjectManager(ctrl *gomock.Controller) *MockProjectManager

NewMockProjectManager creates a new mock instance.

func (*MockProjectManager) Client

func (m *MockProjectManager) Client() *mongo.Client

Client mocks base method.

func (*MockProjectManager) EXPECT

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

func (*MockProjectManager) HaveAccess

func (m *MockProjectManager) HaveAccess(ctx context.Context, userId, projectId uint64) bool

HaveAccess mocks base method.

func (*MockProjectManager) Read

func (m *MockProjectManager) Read(ctx context.Context, projectId uint64) ([]*database.Message, error)

Read mocks base method.

func (*MockProjectManager) Save

func (m *MockProjectManager) Save(ctx context.Context, message *database.Message) error

Save mocks base method.

type MockProjectManagerMockRecorder

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

MockProjectManagerMockRecorder is the mock recorder for MockProjectManager.

func (*MockProjectManagerMockRecorder) Client

Client indicates an expected call of Client.

func (*MockProjectManagerMockRecorder) HaveAccess

func (mr *MockProjectManagerMockRecorder) HaveAccess(ctx, userId, projectId interface{}) *gomock.Call

HaveAccess indicates an expected call of HaveAccess.

func (*MockProjectManagerMockRecorder) Read

func (mr *MockProjectManagerMockRecorder) Read(ctx, projectId interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockProjectManagerMockRecorder) Save

func (mr *MockProjectManagerMockRecorder) Save(ctx, message interface{}) *gomock.Call

Save indicates an expected call of Save.

type MockProjectsDB

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

MockProjectsDB is a mock of ProjectsDB interface.

func NewMockProjectsDB

func NewMockProjectsDB(ctrl *gomock.Controller) *MockProjectsDB

NewMockProjectsDB creates a new mock instance.

func (*MockProjectsDB) EXPECT

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

func (*MockProjectsDB) HaveAccess

func (m *MockProjectsDB) HaveAccess(ctx context.Context, userId, projectId uint64) bool

HaveAccess mocks base method.

type MockProjectsDBMockRecorder

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

MockProjectsDBMockRecorder is the mock recorder for MockProjectsDB.

func (*MockProjectsDBMockRecorder) HaveAccess

func (mr *MockProjectsDBMockRecorder) HaveAccess(ctx, userId, projectId interface{}) *gomock.Call

HaveAccess indicates an expected call of HaveAccess.

Jump to

Keyboard shortcuts

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