Documentation ¶
Index ¶
- type BoltConnMock
- func (mock *BoltConnMock) Begin() (driver.Tx, error)
- func (mock *BoltConnMock) BeginCalls() []struct{}
- func (mock *BoltConnMock) Close() error
- func (mock *BoltConnMock) CloseCalls() []struct{}
- func (mock *BoltConnMock) ExecNeo(query string, params map[string]interface{}) (bolt.Result, error)
- func (mock *BoltConnMock) ExecNeoCalls() []struct{ ... }
- func (mock *BoltConnMock) ExecPipeline(query []string, params ...map[string]interface{}) ([]bolt.Result, error)
- func (mock *BoltConnMock) ExecPipelineCalls() []struct{ ... }
- func (mock *BoltConnMock) GetTimeout() time.Duration
- func (mock *BoltConnMock) GetTimeoutCalls() []struct{}
- func (mock *BoltConnMock) PrepareNeo(query string) (bolt.Stmt, error)
- func (mock *BoltConnMock) PrepareNeoCalls() []struct{ ... }
- func (mock *BoltConnMock) PreparePipeline(query ...string) (bolt.PipelineStmt, error)
- func (mock *BoltConnMock) PreparePipelineCalls() []struct{ ... }
- func (mock *BoltConnMock) QueryNeo(query string, params map[string]interface{}) (bolt.Rows, error)
- func (mock *BoltConnMock) QueryNeoAll(query string, params map[string]interface{}) ([][]interface{}, map[string]interface{}, map[string]interface{}, error)
- func (mock *BoltConnMock) QueryNeoAllCalls() []struct{ ... }
- func (mock *BoltConnMock) QueryNeoCalls() []struct{ ... }
- func (mock *BoltConnMock) QueryPipeline(query []string, params ...map[string]interface{}) (bolt.PipelineRows, error)
- func (mock *BoltConnMock) QueryPipelineCalls() []struct{ ... }
- func (mock *BoltConnMock) SetChunkSize(v uint16)
- func (mock *BoltConnMock) SetChunkSizeCalls() []struct{ ... }
- func (mock *BoltConnMock) SetTimeout(duration time.Duration)
- func (mock *BoltConnMock) SetTimeoutCalls() []struct{ ... }
- type BoltRowsMock
- func (mock *BoltRowsMock) All() ([][]interface{}, map[string]interface{}, error)
- func (mock *BoltRowsMock) AllCalls() []struct{}
- func (mock *BoltRowsMock) Close() error
- func (mock *BoltRowsMock) CloseCalls() []struct{}
- func (mock *BoltRowsMock) Columns() []string
- func (mock *BoltRowsMock) ColumnsCalls() []struct{}
- func (mock *BoltRowsMock) Metadata() map[string]interface{}
- func (mock *BoltRowsMock) MetadataCalls() []struct{}
- func (mock *BoltRowsMock) NextNeo() ([]interface{}, map[string]interface{}, error)
- func (mock *BoltRowsMock) NextNeoCalls() []struct{}
- type ClosableDriverPoolMock
- type Neo4jDriverMock
- func (mock *Neo4jDriverMock) Checker(ctx context.Context, state *health.CheckState) error
- func (mock *Neo4jDriverMock) CheckerCalls() []struct{ ... }
- func (mock *Neo4jDriverMock) Close(ctx context.Context) error
- func (mock *Neo4jDriverMock) CloseCalls() []struct{ ... }
- func (mock *Neo4jDriverMock) Count(query string) (int64, error)
- func (mock *Neo4jDriverMock) CountCalls() []struct{ ... }
- func (mock *Neo4jDriverMock) Exec(query string, params map[string]interface{}) (bolt.Result, error)
- func (mock *Neo4jDriverMock) ExecCalls() []struct{ ... }
- func (mock *Neo4jDriverMock) Healthcheck() (string, error)
- func (mock *Neo4jDriverMock) HealthcheckCalls() []struct{}
- func (mock *Neo4jDriverMock) Read(query string, mapp mapper.ResultMapper, single bool) error
- func (mock *Neo4jDriverMock) ReadCalls() []struct{ ... }
- func (mock *Neo4jDriverMock) ReadWithParams(query string, params map[string]interface{}, mapp mapper.ResultMapper, ...) error
- func (mock *Neo4jDriverMock) ReadWithParamsCalls() []struct{ ... }
- func (mock *Neo4jDriverMock) StreamRows(query string) (*neo4jdriver.BoltRowReader, error)
- func (mock *Neo4jDriverMock) StreamRowsCalls() []struct{ ... }
- type ResultMock
- func (mock *ResultMock) LastInsertId() (int64, error)
- func (mock *ResultMock) LastInsertIdCalls() []struct{}
- func (mock *ResultMock) Metadata() map[string]interface{}
- func (mock *ResultMock) MetadataCalls() []struct{}
- func (mock *ResultMock) RowsAffected() (int64, error)
- func (mock *ResultMock) RowsAffectedCalls() []struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltConnMock ¶
type BoltConnMock struct { // BeginFunc mocks the Begin method. BeginFunc func() (driver.Tx, error) // CloseFunc mocks the Close method. CloseFunc func() error // ExecNeoFunc mocks the ExecNeo method. ExecNeoFunc func(query string, params map[string]interface{}) (bolt.Result, error) // ExecPipelineFunc mocks the ExecPipeline method. ExecPipelineFunc func(query []string, params ...map[string]interface{}) ([]bolt.Result, error) // GetTimeoutFunc mocks the GetTimeout method. GetTimeoutFunc func() time.Duration // PrepareNeoFunc mocks the PrepareNeo method. PrepareNeoFunc func(query string) (bolt.Stmt, error) // PreparePipelineFunc mocks the PreparePipeline method. PreparePipelineFunc func(query ...string) (bolt.PipelineStmt, error) // QueryNeoFunc mocks the QueryNeo method. QueryNeoFunc func(query string, params map[string]interface{}) (bolt.Rows, error) // QueryNeoAllFunc mocks the QueryNeoAll method. QueryNeoAllFunc func(query string, params map[string]interface{}) ([][]interface{}, map[string]interface{}, map[string]interface{}, error) // QueryPipelineFunc mocks the QueryPipeline method. QueryPipelineFunc func(query []string, params ...map[string]interface{}) (bolt.PipelineRows, error) // SetChunkSizeFunc mocks the SetChunkSize method. SetChunkSizeFunc func(v uint16) // SetTimeoutFunc mocks the SetTimeout method. SetTimeoutFunc func(duration time.Duration) // contains filtered or unexported fields }
BoltConnMock is a mock implementation of neo4jdriver.BoltConn.
func TestSomethingThatUsesBoltConn(t *testing.T) { // make and configure a mocked neo4jdriver.BoltConn mockedBoltConn := &BoltConnMock{ BeginFunc: func() (driver.Tx, error) { panic("mock out the Begin method") }, CloseFunc: func() error { panic("mock out the Close method") }, ExecNeoFunc: func(query string, params map[string]interface{}) (bolt.Result, error) { panic("mock out the ExecNeo method") }, ExecPipelineFunc: func(query []string, params ...map[string]interface{}) ([]bolt.Result, error) { panic("mock out the ExecPipeline method") }, GetTimeoutFunc: func() time.Duration { panic("mock out the GetTimeout method") }, PrepareNeoFunc: func(query string) (bolt.Stmt, error) { panic("mock out the PrepareNeo method") }, PreparePipelineFunc: func(query ...string) (bolt.PipelineStmt, error) { panic("mock out the PreparePipeline method") }, QueryNeoFunc: func(query string, params map[string]interface{}) (bolt.Rows, error) { panic("mock out the QueryNeo method") }, QueryNeoAllFunc: func(query string, params map[string]interface{}) ([][]interface{}, map[string]interface{}, map[string]interface{}, error) { panic("mock out the QueryNeoAll method") }, QueryPipelineFunc: func(query []string, params ...map[string]interface{}) (bolt.PipelineRows, error) { panic("mock out the QueryPipeline method") }, SetChunkSizeFunc: func(v uint16) { panic("mock out the SetChunkSize method") }, SetTimeoutFunc: func(duration time.Duration) { panic("mock out the SetTimeout method") }, } // use mockedBoltConn in code that requires neo4jdriver.BoltConn // and then make assertions. }
func (*BoltConnMock) Begin ¶
func (mock *BoltConnMock) Begin() (driver.Tx, error)
Begin calls BeginFunc.
func (*BoltConnMock) BeginCalls ¶
func (mock *BoltConnMock) BeginCalls() []struct { }
BeginCalls gets all the calls that were made to Begin. Check the length with:
len(mockedBoltConn.BeginCalls())
func (*BoltConnMock) CloseCalls ¶
func (mock *BoltConnMock) CloseCalls() []struct { }
CloseCalls gets all the calls that were made to Close. Check the length with:
len(mockedBoltConn.CloseCalls())
func (*BoltConnMock) ExecNeoCalls ¶
func (mock *BoltConnMock) ExecNeoCalls() []struct { Query string Params map[string]interface{} }
ExecNeoCalls gets all the calls that were made to ExecNeo. Check the length with:
len(mockedBoltConn.ExecNeoCalls())
func (*BoltConnMock) ExecPipeline ¶
func (mock *BoltConnMock) ExecPipeline(query []string, params ...map[string]interface{}) ([]bolt.Result, error)
ExecPipeline calls ExecPipelineFunc.
func (*BoltConnMock) ExecPipelineCalls ¶
func (mock *BoltConnMock) ExecPipelineCalls() []struct { Query []string Params []map[string]interface{} }
ExecPipelineCalls gets all the calls that were made to ExecPipeline. Check the length with:
len(mockedBoltConn.ExecPipelineCalls())
func (*BoltConnMock) GetTimeout ¶
func (mock *BoltConnMock) GetTimeout() time.Duration
GetTimeout calls GetTimeoutFunc.
func (*BoltConnMock) GetTimeoutCalls ¶
func (mock *BoltConnMock) GetTimeoutCalls() []struct { }
GetTimeoutCalls gets all the calls that were made to GetTimeout. Check the length with:
len(mockedBoltConn.GetTimeoutCalls())
func (*BoltConnMock) PrepareNeo ¶
func (mock *BoltConnMock) PrepareNeo(query string) (bolt.Stmt, error)
PrepareNeo calls PrepareNeoFunc.
func (*BoltConnMock) PrepareNeoCalls ¶
func (mock *BoltConnMock) PrepareNeoCalls() []struct { Query string }
PrepareNeoCalls gets all the calls that were made to PrepareNeo. Check the length with:
len(mockedBoltConn.PrepareNeoCalls())
func (*BoltConnMock) PreparePipeline ¶
func (mock *BoltConnMock) PreparePipeline(query ...string) (bolt.PipelineStmt, error)
PreparePipeline calls PreparePipelineFunc.
func (*BoltConnMock) PreparePipelineCalls ¶
func (mock *BoltConnMock) PreparePipelineCalls() []struct { Query []string }
PreparePipelineCalls gets all the calls that were made to PreparePipeline. Check the length with:
len(mockedBoltConn.PreparePipelineCalls())
func (*BoltConnMock) QueryNeoAll ¶
func (mock *BoltConnMock) QueryNeoAll(query string, params map[string]interface{}) ([][]interface{}, map[string]interface{}, map[string]interface{}, error)
QueryNeoAll calls QueryNeoAllFunc.
func (*BoltConnMock) QueryNeoAllCalls ¶
func (mock *BoltConnMock) QueryNeoAllCalls() []struct { Query string Params map[string]interface{} }
QueryNeoAllCalls gets all the calls that were made to QueryNeoAll. Check the length with:
len(mockedBoltConn.QueryNeoAllCalls())
func (*BoltConnMock) QueryNeoCalls ¶
func (mock *BoltConnMock) QueryNeoCalls() []struct { Query string Params map[string]interface{} }
QueryNeoCalls gets all the calls that were made to QueryNeo. Check the length with:
len(mockedBoltConn.QueryNeoCalls())
func (*BoltConnMock) QueryPipeline ¶
func (mock *BoltConnMock) QueryPipeline(query []string, params ...map[string]interface{}) (bolt.PipelineRows, error)
QueryPipeline calls QueryPipelineFunc.
func (*BoltConnMock) QueryPipelineCalls ¶
func (mock *BoltConnMock) QueryPipelineCalls() []struct { Query []string Params []map[string]interface{} }
QueryPipelineCalls gets all the calls that were made to QueryPipeline. Check the length with:
len(mockedBoltConn.QueryPipelineCalls())
func (*BoltConnMock) SetChunkSize ¶
func (mock *BoltConnMock) SetChunkSize(v uint16)
SetChunkSize calls SetChunkSizeFunc.
func (*BoltConnMock) SetChunkSizeCalls ¶
func (mock *BoltConnMock) SetChunkSizeCalls() []struct { V uint16 }
SetChunkSizeCalls gets all the calls that were made to SetChunkSize. Check the length with:
len(mockedBoltConn.SetChunkSizeCalls())
func (*BoltConnMock) SetTimeout ¶
func (mock *BoltConnMock) SetTimeout(duration time.Duration)
SetTimeout calls SetTimeoutFunc.
func (*BoltConnMock) SetTimeoutCalls ¶
func (mock *BoltConnMock) SetTimeoutCalls() []struct { Duration time.Duration }
SetTimeoutCalls gets all the calls that were made to SetTimeout. Check the length with:
len(mockedBoltConn.SetTimeoutCalls())
type BoltRowsMock ¶
type BoltRowsMock struct { // AllFunc mocks the All method. AllFunc func() ([][]interface{}, map[string]interface{}, error) // CloseFunc mocks the Close method. CloseFunc func() error // ColumnsFunc mocks the Columns method. ColumnsFunc func() []string // MetadataFunc mocks the Metadata method. MetadataFunc func() map[string]interface{} // NextNeoFunc mocks the NextNeo method. NextNeoFunc func() ([]interface{}, map[string]interface{}, error) // contains filtered or unexported fields }
BoltRowsMock is a mock implementation of neo4jdriver.BoltRows.
func TestSomethingThatUsesBoltRows(t *testing.T) { // make and configure a mocked neo4jdriver.BoltRows mockedBoltRows := &BoltRowsMock{ AllFunc: func() ([][]interface{}, map[string]interface{}, error) { panic("mock out the All method") }, CloseFunc: func() error { panic("mock out the Close method") }, ColumnsFunc: func() []string { panic("mock out the Columns method") }, MetadataFunc: func() map[string]interface{} { panic("mock out the Metadata method") }, NextNeoFunc: func() ([]interface{}, map[string]interface{}, error) { panic("mock out the NextNeo method") }, } // use mockedBoltRows in code that requires neo4jdriver.BoltRows // and then make assertions. }
func (*BoltRowsMock) All ¶
func (mock *BoltRowsMock) All() ([][]interface{}, map[string]interface{}, error)
All calls AllFunc.
func (*BoltRowsMock) AllCalls ¶
func (mock *BoltRowsMock) AllCalls() []struct { }
AllCalls gets all the calls that were made to All. Check the length with:
len(mockedBoltRows.AllCalls())
func (*BoltRowsMock) CloseCalls ¶
func (mock *BoltRowsMock) CloseCalls() []struct { }
CloseCalls gets all the calls that were made to Close. Check the length with:
len(mockedBoltRows.CloseCalls())
func (*BoltRowsMock) Columns ¶
func (mock *BoltRowsMock) Columns() []string
Columns calls ColumnsFunc.
func (*BoltRowsMock) ColumnsCalls ¶
func (mock *BoltRowsMock) ColumnsCalls() []struct { }
ColumnsCalls gets all the calls that were made to Columns. Check the length with:
len(mockedBoltRows.ColumnsCalls())
func (*BoltRowsMock) Metadata ¶
func (mock *BoltRowsMock) Metadata() map[string]interface{}
Metadata calls MetadataFunc.
func (*BoltRowsMock) MetadataCalls ¶
func (mock *BoltRowsMock) MetadataCalls() []struct { }
MetadataCalls gets all the calls that were made to Metadata. Check the length with:
len(mockedBoltRows.MetadataCalls())
func (*BoltRowsMock) NextNeo ¶
func (mock *BoltRowsMock) NextNeo() ([]interface{}, map[string]interface{}, error)
NextNeo calls NextNeoFunc.
func (*BoltRowsMock) NextNeoCalls ¶
func (mock *BoltRowsMock) NextNeoCalls() []struct { }
NextNeoCalls gets all the calls that were made to NextNeo. Check the length with:
len(mockedBoltRows.NextNeoCalls())
type ClosableDriverPoolMock ¶
type ClosableDriverPoolMock struct { // CloseFunc mocks the Close method. CloseFunc func() error // OpenPoolFunc mocks the OpenPool method. OpenPoolFunc func() (bolt.Conn, error) // contains filtered or unexported fields }
ClosableDriverPoolMock is a mock implementation of neo4jdriver.ClosableDriverPool.
func TestSomethingThatUsesClosableDriverPool(t *testing.T) { // make and configure a mocked neo4jdriver.ClosableDriverPool mockedClosableDriverPool := &ClosableDriverPoolMock{ CloseFunc: func() error { panic("mock out the Close method") }, OpenPoolFunc: func() (bolt.Conn, error) { panic("mock out the OpenPool method") }, } // use mockedClosableDriverPool in code that requires neo4jdriver.ClosableDriverPool // and then make assertions. }
func (*ClosableDriverPoolMock) Close ¶
func (mock *ClosableDriverPoolMock) Close() error
Close calls CloseFunc.
func (*ClosableDriverPoolMock) CloseCalls ¶
func (mock *ClosableDriverPoolMock) CloseCalls() []struct { }
CloseCalls gets all the calls that were made to Close. Check the length with:
len(mockedClosableDriverPool.CloseCalls())
func (*ClosableDriverPoolMock) OpenPool ¶
func (mock *ClosableDriverPoolMock) OpenPool() (bolt.Conn, error)
OpenPool calls OpenPoolFunc.
func (*ClosableDriverPoolMock) OpenPoolCalls ¶
func (mock *ClosableDriverPoolMock) OpenPoolCalls() []struct { }
OpenPoolCalls gets all the calls that were made to OpenPool. Check the length with:
len(mockedClosableDriverPool.OpenPoolCalls())
type Neo4jDriverMock ¶
type Neo4jDriverMock struct { // CheckerFunc mocks the Checker method. CheckerFunc func(ctx context.Context, state *health.CheckState) error // CloseFunc mocks the Close method. CloseFunc func(ctx context.Context) error // CountFunc mocks the Count method. CountFunc func(query string) (int64, error) // ExecFunc mocks the Exec method. ExecFunc func(query string, params map[string]interface{}) (bolt.Result, error) // HealthcheckFunc mocks the Healthcheck method. HealthcheckFunc func() (string, error) // ReadFunc mocks the Read method. ReadFunc func(query string, mapp mapper.ResultMapper, single bool) error // ReadWithParamsFunc mocks the ReadWithParams method. ReadWithParamsFunc func(query string, params map[string]interface{}, mapp mapper.ResultMapper, single bool) error // StreamRowsFunc mocks the StreamRows method. StreamRowsFunc func(query string) (*neo4jdriver.BoltRowReader, error) // contains filtered or unexported fields }
Neo4jDriverMock is a mock implementation of neo4jdriver.Neo4jDriver.
func TestSomethingThatUsesNeo4jDriver(t *testing.T) { // make and configure a mocked neo4jdriver.Neo4jDriver mockedNeo4jDriver := &Neo4jDriverMock{ CheckerFunc: func(ctx context.Context, state *health.CheckState) error { panic("mock out the Checker method") }, CloseFunc: func(ctx context.Context) error { panic("mock out the Close method") }, CountFunc: func(query string) (int64, error) { panic("mock out the Count method") }, ExecFunc: func(query string, params map[string]interface{}) (bolt.Result, error) { panic("mock out the Exec method") }, HealthcheckFunc: func() (string, error) { panic("mock out the Healthcheck method") }, ReadFunc: func(query string, mapp mapper.ResultMapper, single bool) error { panic("mock out the Read method") }, ReadWithParamsFunc: func(query string, params map[string]interface{}, mapp mapper.ResultMapper, single bool) error { panic("mock out the ReadWithParams method") }, StreamRowsFunc: func(query string) (*neo4jdriver.BoltRowReader, error) { panic("mock out the StreamRows method") }, } // use mockedNeo4jDriver in code that requires neo4jdriver.Neo4jDriver // and then make assertions. }
func (*Neo4jDriverMock) Checker ¶
func (mock *Neo4jDriverMock) Checker(ctx context.Context, state *health.CheckState) error
Checker calls CheckerFunc.
func (*Neo4jDriverMock) CheckerCalls ¶
func (mock *Neo4jDriverMock) CheckerCalls() []struct { Ctx context.Context State *health.CheckState }
CheckerCalls gets all the calls that were made to Checker. Check the length with:
len(mockedNeo4jDriver.CheckerCalls())
func (*Neo4jDriverMock) Close ¶
func (mock *Neo4jDriverMock) Close(ctx context.Context) error
Close calls CloseFunc.
func (*Neo4jDriverMock) CloseCalls ¶
func (mock *Neo4jDriverMock) CloseCalls() []struct { Ctx context.Context }
CloseCalls gets all the calls that were made to Close. Check the length with:
len(mockedNeo4jDriver.CloseCalls())
func (*Neo4jDriverMock) Count ¶
func (mock *Neo4jDriverMock) Count(query string) (int64, error)
Count calls CountFunc.
func (*Neo4jDriverMock) CountCalls ¶
func (mock *Neo4jDriverMock) CountCalls() []struct { Query string }
CountCalls gets all the calls that were made to Count. Check the length with:
len(mockedNeo4jDriver.CountCalls())
func (*Neo4jDriverMock) ExecCalls ¶
func (mock *Neo4jDriverMock) ExecCalls() []struct { Query string Params map[string]interface{} }
ExecCalls gets all the calls that were made to Exec. Check the length with:
len(mockedNeo4jDriver.ExecCalls())
func (*Neo4jDriverMock) Healthcheck ¶
func (mock *Neo4jDriverMock) Healthcheck() (string, error)
Healthcheck calls HealthcheckFunc.
func (*Neo4jDriverMock) HealthcheckCalls ¶
func (mock *Neo4jDriverMock) HealthcheckCalls() []struct { }
HealthcheckCalls gets all the calls that were made to Healthcheck. Check the length with:
len(mockedNeo4jDriver.HealthcheckCalls())
func (*Neo4jDriverMock) Read ¶
func (mock *Neo4jDriverMock) Read(query string, mapp mapper.ResultMapper, single bool) error
Read calls ReadFunc.
func (*Neo4jDriverMock) ReadCalls ¶
func (mock *Neo4jDriverMock) ReadCalls() []struct { Query string Mapp mapper.ResultMapper Single bool }
ReadCalls gets all the calls that were made to Read. Check the length with:
len(mockedNeo4jDriver.ReadCalls())
func (*Neo4jDriverMock) ReadWithParams ¶
func (mock *Neo4jDriverMock) ReadWithParams(query string, params map[string]interface{}, mapp mapper.ResultMapper, single bool) error
ReadWithParams calls ReadWithParamsFunc.
func (*Neo4jDriverMock) ReadWithParamsCalls ¶
func (mock *Neo4jDriverMock) ReadWithParamsCalls() []struct { Query string Params map[string]interface{} Mapp mapper.ResultMapper Single bool }
ReadWithParamsCalls gets all the calls that were made to ReadWithParams. Check the length with:
len(mockedNeo4jDriver.ReadWithParamsCalls())
func (*Neo4jDriverMock) StreamRows ¶
func (mock *Neo4jDriverMock) StreamRows(query string) (*neo4jdriver.BoltRowReader, error)
StreamRows calls StreamRowsFunc.
func (*Neo4jDriverMock) StreamRowsCalls ¶
func (mock *Neo4jDriverMock) StreamRowsCalls() []struct { Query string }
StreamRowsCalls gets all the calls that were made to StreamRows. Check the length with:
len(mockedNeo4jDriver.StreamRowsCalls())
type ResultMock ¶
type ResultMock struct { // LastInsertIdFunc mocks the LastInsertId method. LastInsertIdFunc func() (int64, error) // MetadataFunc mocks the Metadata method. MetadataFunc func() map[string]interface{} // RowsAffectedFunc mocks the RowsAffected method. RowsAffectedFunc func() (int64, error) // contains filtered or unexported fields }
ResultMock is a mock implementation of neo4jdriver.Result.
func TestSomethingThatUsesResult(t *testing.T) { // make and configure a mocked neo4jdriver.Result mockedResult := &ResultMock{ LastInsertIdFunc: func() (int64, error) { panic("mock out the LastInsertId method") }, MetadataFunc: func() map[string]interface{} { panic("mock out the Metadata method") }, RowsAffectedFunc: func() (int64, error) { panic("mock out the RowsAffected method") }, } // use mockedResult in code that requires neo4jdriver.Result // and then make assertions. }
func (*ResultMock) LastInsertId ¶
func (mock *ResultMock) LastInsertId() (int64, error)
LastInsertId calls LastInsertIdFunc.
func (*ResultMock) LastInsertIdCalls ¶
func (mock *ResultMock) LastInsertIdCalls() []struct { }
LastInsertIdCalls gets all the calls that were made to LastInsertId. Check the length with:
len(mockedResult.LastInsertIdCalls())
func (*ResultMock) Metadata ¶
func (mock *ResultMock) Metadata() map[string]interface{}
Metadata calls MetadataFunc.
func (*ResultMock) MetadataCalls ¶
func (mock *ResultMock) MetadataCalls() []struct { }
MetadataCalls gets all the calls that were made to Metadata. Check the length with:
len(mockedResult.MetadataCalls())
func (*ResultMock) RowsAffected ¶
func (mock *ResultMock) RowsAffected() (int64, error)
RowsAffected calls RowsAffectedFunc.
func (*ResultMock) RowsAffectedCalls ¶
func (mock *ResultMock) RowsAffectedCalls() []struct { }
RowsAffectedCalls gets all the calls that were made to RowsAffected. Check the length with:
len(mockedResult.RowsAffectedCalls())