mock

package
v2.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxMgr

type TxMgr struct {
	CommitStub func() error

	CommitLostBlockStub func(*ledger.BlockAndPvtData) error

	GetLastSavepointStub func() (*version.Height, error)

	NameStub func() string

	NewQueryExecutorStub func(string) (ledger.QueryExecutor, error)

	NewTxSimulatorStub func(string) (ledger.TxSimulator, error)

	RemoveStaleAndCommitPvtDataOfOldBlocksStub func(map[uint64][]*ledger.TxPvtData) error

	RollbackStub func()

	ShouldRecoverStub func(uint64) (bool, uint64, error)

	ShutdownStub func()

	ValidateAndPrepareStub func(*ledger.BlockAndPvtData, bool) ([]*txmgr.TxStatInfo, []byte, error)
	// contains filtered or unexported fields
}

func (*TxMgr) Commit

func (fake *TxMgr) Commit() error

func (*TxMgr) CommitCallCount

func (fake *TxMgr) CommitCallCount() int

func (*TxMgr) CommitCalls

func (fake *TxMgr) CommitCalls(stub func() error)

func (*TxMgr) CommitLostBlock

func (fake *TxMgr) CommitLostBlock(arg1 *ledger.BlockAndPvtData) error

func (*TxMgr) CommitLostBlockArgsForCall

func (fake *TxMgr) CommitLostBlockArgsForCall(i int) *ledger.BlockAndPvtData

func (*TxMgr) CommitLostBlockCallCount

func (fake *TxMgr) CommitLostBlockCallCount() int

func (*TxMgr) CommitLostBlockCalls

func (fake *TxMgr) CommitLostBlockCalls(stub func(*ledger.BlockAndPvtData) error)

func (*TxMgr) CommitLostBlockReturns

func (fake *TxMgr) CommitLostBlockReturns(result1 error)

func (*TxMgr) CommitLostBlockReturnsOnCall

func (fake *TxMgr) CommitLostBlockReturnsOnCall(i int, result1 error)

func (*TxMgr) CommitReturns

func (fake *TxMgr) CommitReturns(result1 error)

func (*TxMgr) CommitReturnsOnCall

func (fake *TxMgr) CommitReturnsOnCall(i int, result1 error)

func (*TxMgr) GetLastSavepoint

func (fake *TxMgr) GetLastSavepoint() (*version.Height, error)

func (*TxMgr) GetLastSavepointCallCount

func (fake *TxMgr) GetLastSavepointCallCount() int

func (*TxMgr) GetLastSavepointCalls

func (fake *TxMgr) GetLastSavepointCalls(stub func() (*version.Height, error))

func (*TxMgr) GetLastSavepointReturns

func (fake *TxMgr) GetLastSavepointReturns(result1 *version.Height, result2 error)

func (*TxMgr) GetLastSavepointReturnsOnCall

func (fake *TxMgr) GetLastSavepointReturnsOnCall(i int, result1 *version.Height, result2 error)

func (*TxMgr) Invocations

func (fake *TxMgr) Invocations() map[string][][]interface{}

func (*TxMgr) Name

func (fake *TxMgr) Name() string

func (*TxMgr) NameCallCount

func (fake *TxMgr) NameCallCount() int

func (*TxMgr) NameCalls

func (fake *TxMgr) NameCalls(stub func() string)

func (*TxMgr) NameReturns

func (fake *TxMgr) NameReturns(result1 string)

func (*TxMgr) NameReturnsOnCall

func (fake *TxMgr) NameReturnsOnCall(i int, result1 string)

func (*TxMgr) NewQueryExecutor

func (fake *TxMgr) NewQueryExecutor(arg1 string) (ledger.QueryExecutor, error)

func (*TxMgr) NewQueryExecutorArgsForCall

func (fake *TxMgr) NewQueryExecutorArgsForCall(i int) string

func (*TxMgr) NewQueryExecutorCallCount

func (fake *TxMgr) NewQueryExecutorCallCount() int

func (*TxMgr) NewQueryExecutorCalls

func (fake *TxMgr) NewQueryExecutorCalls(stub func(string) (ledger.QueryExecutor, error))

func (*TxMgr) NewQueryExecutorReturns

func (fake *TxMgr) NewQueryExecutorReturns(result1 ledger.QueryExecutor, result2 error)

func (*TxMgr) NewQueryExecutorReturnsOnCall

func (fake *TxMgr) NewQueryExecutorReturnsOnCall(i int, result1 ledger.QueryExecutor, result2 error)

func (*TxMgr) NewTxSimulator

func (fake *TxMgr) NewTxSimulator(arg1 string) (ledger.TxSimulator, error)

func (*TxMgr) NewTxSimulatorArgsForCall

func (fake *TxMgr) NewTxSimulatorArgsForCall(i int) string

func (*TxMgr) NewTxSimulatorCallCount

func (fake *TxMgr) NewTxSimulatorCallCount() int

func (*TxMgr) NewTxSimulatorCalls

func (fake *TxMgr) NewTxSimulatorCalls(stub func(string) (ledger.TxSimulator, error))

func (*TxMgr) NewTxSimulatorReturns

func (fake *TxMgr) NewTxSimulatorReturns(result1 ledger.TxSimulator, result2 error)

func (*TxMgr) NewTxSimulatorReturnsOnCall

func (fake *TxMgr) NewTxSimulatorReturnsOnCall(i int, result1 ledger.TxSimulator, result2 error)

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocks

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocks(arg1 map[uint64][]*ledger.TxPvtData) error

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksArgsForCall

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksArgsForCall(i int) map[uint64][]*ledger.TxPvtData

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCallCount

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCallCount() int

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCalls

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCalls(stub func(map[uint64][]*ledger.TxPvtData) error)

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturns

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturns(result1 error)

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturnsOnCall

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturnsOnCall(i int, result1 error)

func (*TxMgr) Rollback

func (fake *TxMgr) Rollback()

func (*TxMgr) RollbackCallCount

func (fake *TxMgr) RollbackCallCount() int

func (*TxMgr) RollbackCalls

func (fake *TxMgr) RollbackCalls(stub func())

func (*TxMgr) ShouldRecover

func (fake *TxMgr) ShouldRecover(arg1 uint64) (bool, uint64, error)

func (*TxMgr) ShouldRecoverArgsForCall

func (fake *TxMgr) ShouldRecoverArgsForCall(i int) uint64

func (*TxMgr) ShouldRecoverCallCount

func (fake *TxMgr) ShouldRecoverCallCount() int

func (*TxMgr) ShouldRecoverCalls

func (fake *TxMgr) ShouldRecoverCalls(stub func(uint64) (bool, uint64, error))

func (*TxMgr) ShouldRecoverReturns

func (fake *TxMgr) ShouldRecoverReturns(result1 bool, result2 uint64, result3 error)

func (*TxMgr) ShouldRecoverReturnsOnCall

func (fake *TxMgr) ShouldRecoverReturnsOnCall(i int, result1 bool, result2 uint64, result3 error)

func (*TxMgr) Shutdown

func (fake *TxMgr) Shutdown()

func (*TxMgr) ShutdownCallCount

func (fake *TxMgr) ShutdownCallCount() int

func (*TxMgr) ShutdownCalls

func (fake *TxMgr) ShutdownCalls(stub func())

func (*TxMgr) ValidateAndPrepare

func (fake *TxMgr) ValidateAndPrepare(arg1 *ledger.BlockAndPvtData, arg2 bool) ([]*txmgr.TxStatInfo, []byte, error)

func (*TxMgr) ValidateAndPrepareArgsForCall

func (fake *TxMgr) ValidateAndPrepareArgsForCall(i int) (*ledger.BlockAndPvtData, bool)

func (*TxMgr) ValidateAndPrepareCallCount

func (fake *TxMgr) ValidateAndPrepareCallCount() int

func (*TxMgr) ValidateAndPrepareCalls

func (fake *TxMgr) ValidateAndPrepareCalls(stub func(*ledger.BlockAndPvtData, bool) ([]*txmgr.TxStatInfo, []byte, error))

func (*TxMgr) ValidateAndPrepareReturns

func (fake *TxMgr) ValidateAndPrepareReturns(result1 []*txmgr.TxStatInfo, result2 []byte, result3 error)

func (*TxMgr) ValidateAndPrepareReturnsOnCall

func (fake *TxMgr) ValidateAndPrepareReturnsOnCall(i int, result1 []*txmgr.TxStatInfo, result2 []byte, result3 error)

Jump to

Keyboard shortcuts

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