fabric: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/txmgr/mock Index | Files

package mock

import "github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/txmgr/mock"

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

tx_mgr.go

type TxMgr Uses

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 Uses

func (fake *TxMgr) Commit() error

func (*TxMgr) CommitCallCount Uses

func (fake *TxMgr) CommitCallCount() int

func (*TxMgr) CommitCalls Uses

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

func (*TxMgr) CommitLostBlock Uses

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

func (*TxMgr) CommitLostBlockArgsForCall Uses

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

func (*TxMgr) CommitLostBlockCallCount Uses

func (fake *TxMgr) CommitLostBlockCallCount() int

func (*TxMgr) CommitLostBlockCalls Uses

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

func (*TxMgr) CommitLostBlockReturns Uses

func (fake *TxMgr) CommitLostBlockReturns(result1 error)

func (*TxMgr) CommitLostBlockReturnsOnCall Uses

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

func (*TxMgr) CommitReturns Uses

func (fake *TxMgr) CommitReturns(result1 error)

func (*TxMgr) CommitReturnsOnCall Uses

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

func (*TxMgr) GetLastSavepoint Uses

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

func (*TxMgr) GetLastSavepointCallCount Uses

func (fake *TxMgr) GetLastSavepointCallCount() int

func (*TxMgr) GetLastSavepointCalls Uses

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

func (*TxMgr) GetLastSavepointReturns Uses

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

func (*TxMgr) GetLastSavepointReturnsOnCall Uses

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

func (*TxMgr) Invocations Uses

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

func (*TxMgr) Name Uses

func (fake *TxMgr) Name() string

func (*TxMgr) NameCallCount Uses

func (fake *TxMgr) NameCallCount() int

func (*TxMgr) NameCalls Uses

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

func (*TxMgr) NameReturns Uses

func (fake *TxMgr) NameReturns(result1 string)

func (*TxMgr) NameReturnsOnCall Uses

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

func (*TxMgr) NewQueryExecutor Uses

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

func (*TxMgr) NewQueryExecutorArgsForCall Uses

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

func (*TxMgr) NewQueryExecutorCallCount Uses

func (fake *TxMgr) NewQueryExecutorCallCount() int

func (*TxMgr) NewQueryExecutorCalls Uses

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

func (*TxMgr) NewQueryExecutorReturns Uses

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

func (*TxMgr) NewQueryExecutorReturnsOnCall Uses

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

func (*TxMgr) NewTxSimulator Uses

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

func (*TxMgr) NewTxSimulatorArgsForCall Uses

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

func (*TxMgr) NewTxSimulatorCallCount Uses

func (fake *TxMgr) NewTxSimulatorCallCount() int

func (*TxMgr) NewTxSimulatorCalls Uses

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

func (*TxMgr) NewTxSimulatorReturns Uses

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

func (*TxMgr) NewTxSimulatorReturnsOnCall Uses

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

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocks Uses

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

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksArgsForCall Uses

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

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCallCount Uses

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCallCount() int

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksCalls Uses

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

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturns Uses

func (fake *TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturns(result1 error)

func (*TxMgr) RemoveStaleAndCommitPvtDataOfOldBlocksReturnsOnCall Uses

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

func (*TxMgr) Rollback Uses

func (fake *TxMgr) Rollback()

func (*TxMgr) RollbackCallCount Uses

func (fake *TxMgr) RollbackCallCount() int

func (*TxMgr) RollbackCalls Uses

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

func (*TxMgr) ShouldRecover Uses

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

func (*TxMgr) ShouldRecoverArgsForCall Uses

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

func (*TxMgr) ShouldRecoverCallCount Uses

func (fake *TxMgr) ShouldRecoverCallCount() int

func (*TxMgr) ShouldRecoverCalls Uses

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

func (*TxMgr) ShouldRecoverReturns Uses

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

func (*TxMgr) ShouldRecoverReturnsOnCall Uses

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

func (*TxMgr) Shutdown Uses

func (fake *TxMgr) Shutdown()

func (*TxMgr) ShutdownCallCount Uses

func (fake *TxMgr) ShutdownCallCount() int

func (*TxMgr) ShutdownCalls Uses

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

func (*TxMgr) ValidateAndPrepare Uses

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

func (*TxMgr) ValidateAndPrepareArgsForCall Uses

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

func (*TxMgr) ValidateAndPrepareCallCount Uses

func (fake *TxMgr) ValidateAndPrepareCallCount() int

func (*TxMgr) ValidateAndPrepareCalls Uses

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

func (*TxMgr) ValidateAndPrepareReturns Uses

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

func (*TxMgr) ValidateAndPrepareReturnsOnCall Uses

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

Package mock imports 4 packages (graph). Updated 2019-11-18. Refresh now. Tools for package owners.