mock_wrapper

package
v0.0.0-...-9745057 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_wrapper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCollection

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

MockCollection is a mock of Collection interface

func NewMockCollection

func NewMockCollection(ctrl *gomock.Controller) *MockCollection

NewMockCollection creates a new mock instance

func (*MockCollection) EXPECT

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

func (*MockCollection) Find

func (m *MockCollection) Find(query interface{}) Query

Find mocks base method

func (*MockCollection) Insert

func (m *MockCollection) Insert(docs ...interface{}) error

Insert mocks base method

func (*MockCollection) Remove

func (m *MockCollection) Remove(selector interface{}) error

Remove mocks base method

func (*MockCollection) Update

func (m *MockCollection) Update(selector, update interface{}) error

Update mocks base method

type MockCollectionMockRecorder

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

MockCollectionMockRecorder is the mock recorder for MockCollection

func (*MockCollectionMockRecorder) Find

func (mr *MockCollectionMockRecorder) Find(query interface{}) *gomock.Call

Find indicates an expected call of Find

func (*MockCollectionMockRecorder) Insert

func (mr *MockCollectionMockRecorder) Insert(docs ...interface{}) *gomock.Call

Insert indicates an expected call of Insert

func (*MockCollectionMockRecorder) Remove

func (mr *MockCollectionMockRecorder) Remove(selector interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockCollectionMockRecorder) Update

func (mr *MockCollectionMockRecorder) Update(selector, update interface{}) *gomock.Call

Update indicates an expected call of Update

type MockConnection

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

MockConnection is a mock of Connection interface

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance

func (*MockConnection) Dial

func (m *MockConnection) Dial(url string) (Session, error)

Dial mocks base method

func (*MockConnection) EXPECT

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

type MockConnectionMockRecorder

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

MockConnectionMockRecorder is the mock recorder for MockConnection

func (*MockConnectionMockRecorder) Dial

func (mr *MockConnectionMockRecorder) Dial(url interface{}) *gomock.Call

Dial indicates an expected call of Dial

type MockDatabase

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

MockDatabase is a mock of Database interface

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance

func (*MockDatabase) C

func (m *MockDatabase) C(name string) Collection

C mocks base method

func (*MockDatabase) EXPECT

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

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase

func (*MockDatabaseMockRecorder) C

func (mr *MockDatabaseMockRecorder) C(name interface{}) *gomock.Call

C indicates an expected call of C

type MockQuery

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

MockQuery is a mock of Query interface

func NewMockQuery

func NewMockQuery(ctrl *gomock.Controller) *MockQuery

NewMockQuery creates a new mock instance

func (*MockQuery) All

func (m *MockQuery) All(result interface{}) error

All mocks base method

func (*MockQuery) Count

func (m *MockQuery) Count() (int, error)

Count mocks base method

func (*MockQuery) EXPECT

func (m *MockQuery) EXPECT() *MockQueryMockRecorder

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

func (*MockQuery) One

func (m *MockQuery) One(result interface{}) error

One mocks base method

type MockQueryMockRecorder

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

MockQueryMockRecorder is the mock recorder for MockQuery

func (*MockQueryMockRecorder) All

func (mr *MockQueryMockRecorder) All(result interface{}) *gomock.Call

All indicates an expected call of All

func (*MockQueryMockRecorder) Count

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

Count indicates an expected call of Count

func (*MockQueryMockRecorder) One

func (mr *MockQueryMockRecorder) One(result interface{}) *gomock.Call

One indicates an expected call of One

type MockSession

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

MockSession is a mock of Session interface

func NewMockSession

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance

func (*MockSession) Close

func (m *MockSession) Close()

Close mocks base method

func (*MockSession) DB

func (m *MockSession) DB(name string) Database

DB mocks base method

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

type MockSessionMockRecorder

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

MockSessionMockRecorder is the mock recorder for MockSession

func (*MockSessionMockRecorder) Close

func (mr *MockSessionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockSessionMockRecorder) DB

func (mr *MockSessionMockRecorder) DB(name interface{}) *gomock.Call

DB indicates an expected call of DB

Jump to

Keyboard shortcuts

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