mock

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

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthManager

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

MockAuthManager is a mock of AuthManager interface.

func NewMockAuthManager

func NewMockAuthManager(ctrl *gomock.Controller) *MockAuthManager

NewMockAuthManager creates a new mock instance.

func (*MockAuthManager) Close

func (m *MockAuthManager) Close()

Close mocks base method.

func (*MockAuthManager) CreateNewSession

func (m *MockAuthManager) CreateNewSession(arg0 models.UserID) (*models.Session, *fcerror.Error)

CreateNewSession mocks base method.

func (*MockAuthManager) EXPECT

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

func (*MockAuthManager) Login

func (m *MockAuthManager) Login(arg0, arg1 string) (*models.Session, *fcerror.Error)

Login mocks base method.

func (*MockAuthManager) Logout

func (m *MockAuthManager) Logout(arg0 models.Token) *fcerror.Error

Logout mocks base method.

func (*MockAuthManager) VerifyToken

func (m *MockAuthManager) VerifyToken(arg0 models.Token) (*models.User, *fcerror.Error)

VerifyToken mocks base method.

type MockAuthManagerMockRecorder

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

MockAuthManagerMockRecorder is the mock recorder for MockAuthManager.

func (*MockAuthManagerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockAuthManagerMockRecorder) CreateNewSession

func (mr *MockAuthManagerMockRecorder) CreateNewSession(arg0 interface{}) *gomock.Call

CreateNewSession indicates an expected call of CreateNewSession.

func (*MockAuthManagerMockRecorder) Login

func (mr *MockAuthManagerMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockAuthManagerMockRecorder) Logout

func (mr *MockAuthManagerMockRecorder) Logout(arg0 interface{}) *gomock.Call

Logout indicates an expected call of Logout.

func (*MockAuthManagerMockRecorder) VerifyToken

func (mr *MockAuthManagerMockRecorder) VerifyToken(arg0 interface{}) *gomock.Call

VerifyToken indicates an expected call of VerifyToken.

type MockDriver

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

MockDriver is a mock of Driver interface.

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance.

func (*MockDriver) Close

func (m *MockDriver) Close() error

Close mocks base method.

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

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

func (*MockDriver) NewSession

func (m *MockDriver) NewSession(arg0 neo4j.SessionConfig) (neo4j.Session, error)

NewSession mocks base method.

func (*MockDriver) Session

func (m *MockDriver) Session(arg0 neo4j.AccessMode, arg1 ...string) (neo4j.Session, error)

Session mocks base method.

func (*MockDriver) Target

func (m *MockDriver) Target() url.URL

Target mocks base method.

func (*MockDriver) VerifyConnectivity

func (m *MockDriver) VerifyConnectivity() error

VerifyConnectivity mocks base method.

type MockDriverMockRecorder

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

MockDriverMockRecorder is the mock recorder for MockDriver.

func (*MockDriverMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockDriverMockRecorder) NewSession

func (mr *MockDriverMockRecorder) NewSession(arg0 interface{}) *gomock.Call

NewSession indicates an expected call of NewSession.

func (*MockDriverMockRecorder) Session

func (mr *MockDriverMockRecorder) Session(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Session indicates an expected call of Session.

func (*MockDriverMockRecorder) Target

func (mr *MockDriverMockRecorder) Target() *gomock.Call

Target indicates an expected call of Target.

func (*MockDriverMockRecorder) VerifyConnectivity

func (mr *MockDriverMockRecorder) VerifyConnectivity() *gomock.Call

VerifyConnectivity indicates an expected call of VerifyConnectivity.

type MockNode

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

MockNode is a mock of Node interface.

func NewMockNode

func NewMockNode(ctrl *gomock.Controller) *MockNode

NewMockNode creates a new mock instance.

func (*MockNode) EXPECT

func (m *MockNode) EXPECT() *MockNodeMockRecorder

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

func (*MockNode) Id

func (m *MockNode) Id() int64

Id mocks base method.

func (*MockNode) Labels

func (m *MockNode) Labels() []string

Labels mocks base method.

func (*MockNode) Props

func (m *MockNode) Props() map[string]interface{}

Props mocks base method.

type MockNodeManager

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

MockNodeManager is a mock of NodeManager interface.

func NewMockNodeManager

func NewMockNodeManager(ctrl *gomock.Controller) *MockNodeManager

NewMockNodeManager creates a new mock instance.

func (*MockNodeManager) Close

func (m *MockNodeManager) Close()

Close mocks base method.

func (*MockNodeManager) CreateNode

func (m *MockNodeManager) CreateNode(arg0 *authorization.Context, arg1 *models.Node) (bool, *fcerror.Error)

CreateNode mocks base method.

func (*MockNodeManager) CreateUserRootFolder

func (m *MockNodeManager) CreateUserRootFolder(arg0 *authorization.Context, arg1 models.UserID) *fcerror.Error

CreateUserRootFolder mocks base method.

func (*MockNodeManager) DownloadFile

DownloadFile mocks base method.

func (*MockNodeManager) EXPECT

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

func (*MockNodeManager) GetNodeByID

func (m *MockNodeManager) GetNodeByID(arg0 *authorization.Context, arg1 models.NodeID) (*models.Node, *fcerror.Error)

GetNodeByID mocks base method.

func (*MockNodeManager) GetNodeByPath

func (m *MockNodeManager) GetNodeByPath(arg0 *authorization.Context, arg1 string) (*models.Node, *fcerror.Error)

GetNodeByPath mocks base method.

func (*MockNodeManager) ListByID

func (m *MockNodeManager) ListByID(arg0 *authorization.Context, arg1 models.NodeID) ([]*models.Node, *fcerror.Error)

ListByID mocks base method.

func (*MockNodeManager) UploadFileByID

func (m *MockNodeManager) UploadFileByID(arg0 *authorization.Context, arg1 models.NodeID, arg2 string) *fcerror.Error

UploadFileByID mocks base method.

type MockNodeManagerMockRecorder

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

MockNodeManagerMockRecorder is the mock recorder for MockNodeManager.

func (*MockNodeManagerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockNodeManagerMockRecorder) CreateNode

func (mr *MockNodeManagerMockRecorder) CreateNode(arg0, arg1 interface{}) *gomock.Call

CreateNode indicates an expected call of CreateNode.

func (*MockNodeManagerMockRecorder) CreateUserRootFolder

func (mr *MockNodeManagerMockRecorder) CreateUserRootFolder(arg0, arg1 interface{}) *gomock.Call

CreateUserRootFolder indicates an expected call of CreateUserRootFolder.

func (*MockNodeManagerMockRecorder) DownloadFile

func (mr *MockNodeManagerMockRecorder) DownloadFile(arg0, arg1 interface{}) *gomock.Call

DownloadFile indicates an expected call of DownloadFile.

func (*MockNodeManagerMockRecorder) GetNodeByID

func (mr *MockNodeManagerMockRecorder) GetNodeByID(arg0, arg1 interface{}) *gomock.Call

GetNodeByID indicates an expected call of GetNodeByID.

func (*MockNodeManagerMockRecorder) GetNodeByPath

func (mr *MockNodeManagerMockRecorder) GetNodeByPath(arg0, arg1 interface{}) *gomock.Call

GetNodeByPath indicates an expected call of GetNodeByPath.

func (*MockNodeManagerMockRecorder) ListByID

func (mr *MockNodeManagerMockRecorder) ListByID(arg0, arg1 interface{}) *gomock.Call

ListByID indicates an expected call of ListByID.

func (*MockNodeManagerMockRecorder) UploadFileByID

func (mr *MockNodeManagerMockRecorder) UploadFileByID(arg0, arg1, arg2 interface{}) *gomock.Call

UploadFileByID indicates an expected call of UploadFileByID.

type MockNodeMockRecorder

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

MockNodeMockRecorder is the mock recorder for MockNode.

func (*MockNodeMockRecorder) Id

func (mr *MockNodeMockRecorder) Id() *gomock.Call

Id indicates an expected call of Id.

func (*MockNodeMockRecorder) Labels

func (mr *MockNodeMockRecorder) Labels() *gomock.Call

Labels indicates an expected call of Labels.

func (*MockNodeMockRecorder) Props

func (mr *MockNodeMockRecorder) Props() *gomock.Call

Props indicates an expected call of Props.

type MockRecord

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

MockRecord is a mock of Record interface.

func NewMockRecord

func NewMockRecord(ctrl *gomock.Controller) *MockRecord

NewMockRecord creates a new mock instance.

func (*MockRecord) EXPECT

func (m *MockRecord) EXPECT() *MockRecordMockRecorder

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

func (*MockRecord) Get

func (m *MockRecord) Get(arg0 string) (interface{}, bool)

Get mocks base method.

func (*MockRecord) GetByIndex

func (m *MockRecord) GetByIndex(arg0 int) interface{}

GetByIndex mocks base method.

func (*MockRecord) Keys

func (m *MockRecord) Keys() []string

Keys mocks base method.

func (*MockRecord) Values

func (m *MockRecord) Values() []interface{}

Values mocks base method.

type MockRecordMockRecorder

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

MockRecordMockRecorder is the mock recorder for MockRecord.

func (*MockRecordMockRecorder) Get

func (mr *MockRecordMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRecordMockRecorder) GetByIndex

func (mr *MockRecordMockRecorder) GetByIndex(arg0 interface{}) *gomock.Call

GetByIndex indicates an expected call of GetByIndex.

func (*MockRecordMockRecorder) Keys

func (mr *MockRecordMockRecorder) Keys() *gomock.Call

Keys indicates an expected call of Keys.

func (*MockRecordMockRecorder) Values

func (mr *MockRecordMockRecorder) Values() *gomock.Call

Values indicates an expected call of Values.

type MockResult

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

MockResult is a mock of Result interface.

func NewMockResult

func NewMockResult(ctrl *gomock.Controller) *MockResult

NewMockResult creates a new mock instance.

func (*MockResult) Consume

func (m *MockResult) Consume() (neo4j.ResultSummary, error)

Consume mocks base method.

func (*MockResult) EXPECT

func (m *MockResult) EXPECT() *MockResultMockRecorder

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

func (*MockResult) Err

func (m *MockResult) Err() error

Err mocks base method.

func (*MockResult) Keys

func (m *MockResult) Keys() ([]string, error)

Keys mocks base method.

func (*MockResult) Next

func (m *MockResult) Next() bool

Next mocks base method.

func (*MockResult) Record

func (m *MockResult) Record() neo4j.Record

Record mocks base method.

func (*MockResult) Summary

func (m *MockResult) Summary() (neo4j.ResultSummary, error)

Summary mocks base method.

type MockResultMockRecorder

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

MockResultMockRecorder is the mock recorder for MockResult.

func (*MockResultMockRecorder) Consume

func (mr *MockResultMockRecorder) Consume() *gomock.Call

Consume indicates an expected call of Consume.

func (*MockResultMockRecorder) Err

func (mr *MockResultMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockResultMockRecorder) Keys

func (mr *MockResultMockRecorder) Keys() *gomock.Call

Keys indicates an expected call of Keys.

func (*MockResultMockRecorder) Next

func (mr *MockResultMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockResultMockRecorder) Record

func (mr *MockResultMockRecorder) Record() *gomock.Call

Record indicates an expected call of Record.

func (*MockResultMockRecorder) Summary

func (mr *MockResultMockRecorder) Summary() *gomock.Call

Summary indicates an expected call of Summary.

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

func (m *MockSession) BeginTransaction(arg0 ...func(*neo4j.TransactionConfig)) (neo4j.Transaction, error)

BeginTransaction mocks base method.

func (*MockSession) Close

func (m *MockSession) Close() error

Close mocks base method.

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

func (*MockSession) LastBookmark

func (m *MockSession) LastBookmark() string

LastBookmark mocks base method.

func (*MockSession) ReadTransaction

func (m *MockSession) ReadTransaction(arg0 neo4j.TransactionWork, arg1 ...func(*neo4j.TransactionConfig)) (interface{}, error)

ReadTransaction mocks base method.

func (*MockSession) Run

func (m *MockSession) Run(arg0 string, arg1 map[string]interface{}, arg2 ...func(*neo4j.TransactionConfig)) (neo4j.Result, error)

Run mocks base method.

func (*MockSession) WriteTransaction

func (m *MockSession) WriteTransaction(arg0 neo4j.TransactionWork, arg1 ...func(*neo4j.TransactionConfig)) (interface{}, error)

WriteTransaction mocks base method.

type MockSessionMockRecorder

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

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) BeginTransaction

func (mr *MockSessionMockRecorder) BeginTransaction(arg0 ...interface{}) *gomock.Call

BeginTransaction indicates an expected call of BeginTransaction.

func (*MockSessionMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockSessionMockRecorder) LastBookmark

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

LastBookmark indicates an expected call of LastBookmark.

func (*MockSessionMockRecorder) ReadTransaction

func (mr *MockSessionMockRecorder) ReadTransaction(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ReadTransaction indicates an expected call of ReadTransaction.

func (*MockSessionMockRecorder) Run

func (mr *MockSessionMockRecorder) Run(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockSessionMockRecorder) WriteTransaction

func (mr *MockSessionMockRecorder) WriteTransaction(arg0 interface{}, arg1 ...interface{}) *gomock.Call

WriteTransaction indicates an expected call of WriteTransaction.

type MockTransaction

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

MockTransaction is a mock of Transaction interface.

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance.

func (*MockTransaction) Close

func (m *MockTransaction) Close() error

Close mocks base method.

func (*MockTransaction) Commit

func (m *MockTransaction) Commit() error

Commit mocks base method.

func (*MockTransaction) EXPECT

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

func (*MockTransaction) Rollback

func (m *MockTransaction) Rollback() error

Rollback mocks base method.

func (*MockTransaction) Run

func (m *MockTransaction) Run(arg0 string, arg1 map[string]interface{}) (neo4j.Result, error)

Run mocks base method.

type MockTransactionMockRecorder

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

MockTransactionMockRecorder is the mock recorder for MockTransaction.

func (*MockTransactionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockTransactionMockRecorder) Commit

func (mr *MockTransactionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTransactionMockRecorder) Rollback

func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockTransactionMockRecorder) Run

func (mr *MockTransactionMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run.

type MockUserManager

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

MockUserManager is a mock of UserManager interface.

func NewMockUserManager

func NewMockUserManager(ctrl *gomock.Controller) *MockUserManager

NewMockUserManager creates a new mock instance.

func (*MockUserManager) Close

func (m *MockUserManager) Close()

Close mocks base method.

func (*MockUserManager) CountUsers

func (m *MockUserManager) CountUsers(arg0 *authorization.Context) (int64, *fcerror.Error)

CountUsers mocks base method.

func (*MockUserManager) CreateUser

func (m *MockUserManager) CreateUser(arg0 *models.User) (*models.Session, *fcerror.Error)

CreateUser mocks base method.

func (*MockUserManager) EXPECT

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

func (*MockUserManager) GetUserByEmail

func (m *MockUserManager) GetUserByEmail(arg0 *authorization.Context, arg1 string) (*models.User, *fcerror.Error)

GetUserByEmail mocks base method.

func (*MockUserManager) GetUserByID

func (m *MockUserManager) GetUserByID(arg0 *authorization.Context, arg1 models.UserID) (*models.User, *fcerror.Error)

GetUserByID mocks base method.

func (*MockUserManager) UpdateUser

func (m *MockUserManager) UpdateUser(arg0 *authorization.Context, arg1 models.UserID, arg2 *models.UserUpdate) (*models.User, *fcerror.Error)

UpdateUser mocks base method.

type MockUserManagerMockRecorder

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

MockUserManagerMockRecorder is the mock recorder for MockUserManager.

func (*MockUserManagerMockRecorder) Close

Close indicates an expected call of Close.

func (*MockUserManagerMockRecorder) CountUsers

func (mr *MockUserManagerMockRecorder) CountUsers(arg0 interface{}) *gomock.Call

CountUsers indicates an expected call of CountUsers.

func (*MockUserManagerMockRecorder) CreateUser

func (mr *MockUserManagerMockRecorder) CreateUser(arg0 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserManagerMockRecorder) GetUserByEmail

func (mr *MockUserManagerMockRecorder) GetUserByEmail(arg0, arg1 interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockUserManagerMockRecorder) GetUserByID

func (mr *MockUserManagerMockRecorder) GetUserByID(arg0, arg1 interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockUserManagerMockRecorder) UpdateUser

func (mr *MockUserManagerMockRecorder) UpdateUser(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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