test

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package test specifies some Neo4j interfaces without unexported functions, so it is possible to mock it. Only usage of that is to generate mocks and use it in tests.

Package test is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExplicitTransaction

type MockExplicitTransaction struct {
	neo4j.ExplicitTransaction
	// contains filtered or unexported fields
}

MockExplicitTransaction is a mock of ExplicitTransaction interface.

func NewMockExplicitTransaction

func NewMockExplicitTransaction(ctrl *gomock.Controller) *MockExplicitTransaction

NewMockExplicitTransaction creates a new mock instance.

func (*MockExplicitTransaction) Close

Close mocks base method.

func (*MockExplicitTransaction) Commit

func (m *MockExplicitTransaction) Commit(arg0 context.Context) error

Commit mocks base method.

func (*MockExplicitTransaction) EXPECT

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

func (*MockExplicitTransaction) Rollback

func (m *MockExplicitTransaction) Rollback(arg0 context.Context) error

Rollback mocks base method.

func (*MockExplicitTransaction) Run

Run mocks base method.

type MockExplicitTransactionMockRecorder

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

MockExplicitTransactionMockRecorder is the mock recorder for MockExplicitTransaction.

func (*MockExplicitTransactionMockRecorder) Close

Close indicates an expected call of Close.

func (*MockExplicitTransactionMockRecorder) Commit

Commit indicates an expected call of Commit.

func (*MockExplicitTransactionMockRecorder) Rollback

func (mr *MockExplicitTransactionMockRecorder) Rollback(arg0 any) *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockExplicitTransactionMockRecorder) Run

func (mr *MockExplicitTransactionMockRecorder) Run(arg0, arg1, arg2 any) *gomock.Call

Run indicates an expected call of Run.

type MockResultWithContext

type MockResultWithContext struct {
	neo4j.ResultWithContext
	// contains filtered or unexported fields
}

MockResultWithContext is a mock of ResultWithContext interface.

func NewMockResultWithContext

func NewMockResultWithContext(ctrl *gomock.Controller) *MockResultWithContext

NewMockResultWithContext creates a new mock instance.

func (*MockResultWithContext) Collect

func (m *MockResultWithContext) Collect(arg0 context.Context) ([]*db.Record, error)

Collect mocks base method.

func (*MockResultWithContext) Consume

Consume mocks base method.

func (*MockResultWithContext) EXPECT

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

func (*MockResultWithContext) Err

func (m *MockResultWithContext) Err() error

Err mocks base method.

func (*MockResultWithContext) IsOpen

func (m *MockResultWithContext) IsOpen() bool

IsOpen mocks base method.

func (*MockResultWithContext) Keys

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

Keys mocks base method.

func (*MockResultWithContext) Next

func (m *MockResultWithContext) Next(arg0 context.Context) bool

Next mocks base method.

func (*MockResultWithContext) NextRecord

func (m *MockResultWithContext) NextRecord(arg0 context.Context, arg1 **db.Record) bool

NextRecord mocks base method.

func (*MockResultWithContext) Peek

func (m *MockResultWithContext) Peek(arg0 context.Context) bool

Peek mocks base method.

func (*MockResultWithContext) PeekRecord

func (m *MockResultWithContext) PeekRecord(arg0 context.Context, arg1 **db.Record) bool

PeekRecord mocks base method.

func (*MockResultWithContext) Record

func (m *MockResultWithContext) Record() *db.Record

Record mocks base method.

func (*MockResultWithContext) Single

func (m *MockResultWithContext) Single(arg0 context.Context) (*db.Record, error)

Single mocks base method.

type MockResultWithContextMockRecorder

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

MockResultWithContextMockRecorder is the mock recorder for MockResultWithContext.

func (*MockResultWithContextMockRecorder) Collect

func (mr *MockResultWithContextMockRecorder) Collect(arg0 any) *gomock.Call

Collect indicates an expected call of Collect.

func (*MockResultWithContextMockRecorder) Consume

func (mr *MockResultWithContextMockRecorder) Consume(arg0 any) *gomock.Call

Consume indicates an expected call of Consume.

func (*MockResultWithContextMockRecorder) Err

Err indicates an expected call of Err.

func (*MockResultWithContextMockRecorder) IsOpen

IsOpen indicates an expected call of IsOpen.

func (*MockResultWithContextMockRecorder) Keys

Keys indicates an expected call of Keys.

func (*MockResultWithContextMockRecorder) Next

Next indicates an expected call of Next.

func (*MockResultWithContextMockRecorder) NextRecord

func (mr *MockResultWithContextMockRecorder) NextRecord(arg0, arg1 any) *gomock.Call

NextRecord indicates an expected call of NextRecord.

func (*MockResultWithContextMockRecorder) Peek

Peek indicates an expected call of Peek.

func (*MockResultWithContextMockRecorder) PeekRecord

func (mr *MockResultWithContextMockRecorder) PeekRecord(arg0, arg1 any) *gomock.Call

PeekRecord indicates an expected call of PeekRecord.

func (*MockResultWithContextMockRecorder) Record

Record indicates an expected call of Record.

func (*MockResultWithContextMockRecorder) Single

Single indicates an expected call of Single.

Jump to

Keyboard shortcuts

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