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 ¶
- type MockExplicitTransaction
- func (m *MockExplicitTransaction) Close(arg0 context.Context) error
- func (m *MockExplicitTransaction) Commit(arg0 context.Context) error
- func (m *MockExplicitTransaction) EXPECT() *MockExplicitTransactionMockRecorder
- func (m *MockExplicitTransaction) Rollback(arg0 context.Context) error
- func (m *MockExplicitTransaction) Run(arg0 context.Context, arg1 string, arg2 map[string]any) (neo4j.ResultWithContext, error)
- type MockExplicitTransactionMockRecorder
- func (mr *MockExplicitTransactionMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockExplicitTransactionMockRecorder) Commit(arg0 any) *gomock.Call
- func (mr *MockExplicitTransactionMockRecorder) Rollback(arg0 any) *gomock.Call
- func (mr *MockExplicitTransactionMockRecorder) Run(arg0, arg1, arg2 any) *gomock.Call
- type MockResultWithContext
- func (m *MockResultWithContext) Collect(arg0 context.Context) ([]*db.Record, error)
- func (m *MockResultWithContext) Consume(arg0 context.Context) (neo4j.ResultSummary, error)
- func (m *MockResultWithContext) EXPECT() *MockResultWithContextMockRecorder
- func (m *MockResultWithContext) Err() error
- func (m *MockResultWithContext) IsOpen() bool
- func (m *MockResultWithContext) Keys() ([]string, error)
- func (m *MockResultWithContext) Next(arg0 context.Context) bool
- func (m *MockResultWithContext) NextRecord(arg0 context.Context, arg1 **db.Record) bool
- func (m *MockResultWithContext) Peek(arg0 context.Context) bool
- func (m *MockResultWithContext) PeekRecord(arg0 context.Context, arg1 **db.Record) bool
- func (m *MockResultWithContext) Record() *db.Record
- func (m *MockResultWithContext) Single(arg0 context.Context) (*db.Record, error)
- type MockResultWithContextMockRecorder
- func (mr *MockResultWithContextMockRecorder) Collect(arg0 any) *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Consume(arg0 any) *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Err() *gomock.Call
- func (mr *MockResultWithContextMockRecorder) IsOpen() *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Keys() *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Next(arg0 any) *gomock.Call
- func (mr *MockResultWithContextMockRecorder) NextRecord(arg0, arg1 any) *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Peek(arg0 any) *gomock.Call
- func (mr *MockResultWithContextMockRecorder) PeekRecord(arg0, arg1 any) *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Record() *gomock.Call
- func (mr *MockResultWithContextMockRecorder) Single(arg0 any) *gomock.Call
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 ¶
func (m *MockExplicitTransaction) Close(arg0 context.Context) error
Close mocks base method.
func (*MockExplicitTransaction) Commit ¶
func (m *MockExplicitTransaction) Commit(arg0 context.Context) error
Commit mocks base method.
func (*MockExplicitTransaction) EXPECT ¶
func (m *MockExplicitTransaction) EXPECT() *MockExplicitTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExplicitTransactionMockRecorder ¶
type MockExplicitTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockExplicitTransactionMockRecorder is the mock recorder for MockExplicitTransaction.
func (*MockExplicitTransactionMockRecorder) Close ¶
func (mr *MockExplicitTransactionMockRecorder) Close(arg0 any) *gomock.Call
Close indicates an expected call of Close.
func (*MockExplicitTransactionMockRecorder) Commit ¶
func (mr *MockExplicitTransactionMockRecorder) Commit(arg0 any) *gomock.Call
Commit indicates an expected call of Commit.
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) Consume ¶
func (m *MockResultWithContext) Consume(arg0 context.Context) (neo4j.ResultSummary, error)
Consume mocks base method.
func (*MockResultWithContext) EXPECT ¶
func (m *MockResultWithContext) EXPECT() *MockResultWithContextMockRecorder
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 ¶
NextRecord mocks base method.
func (*MockResultWithContext) Peek ¶
func (m *MockResultWithContext) Peek(arg0 context.Context) bool
Peek mocks base method.
func (*MockResultWithContext) PeekRecord ¶
PeekRecord mocks base method.
func (*MockResultWithContext) Record ¶
func (m *MockResultWithContext) Record() *db.Record
Record 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 ¶
func (mr *MockResultWithContextMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockResultWithContextMockRecorder) IsOpen ¶
func (mr *MockResultWithContextMockRecorder) IsOpen() *gomock.Call
IsOpen indicates an expected call of IsOpen.
func (*MockResultWithContextMockRecorder) Keys ¶
func (mr *MockResultWithContextMockRecorder) Keys() *gomock.Call
Keys indicates an expected call of Keys.
func (*MockResultWithContextMockRecorder) Next ¶
func (mr *MockResultWithContextMockRecorder) Next(arg0 any) *gomock.Call
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 ¶
func (mr *MockResultWithContextMockRecorder) Peek(arg0 any) *gomock.Call
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 ¶
func (mr *MockResultWithContextMockRecorder) Record() *gomock.Call
Record indicates an expected call of Record.