ledgermgmttest

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSnapshotWithGenesisBlock

func CreateSnapshotWithGenesisBlock(t *testing.T, testDir string, ledgerID string, configTxProcessor ledger.CustomTxProcessor) string

CreateSnapshotWithGenesisBlock creates a snapshot with only genesis block for the given ledgerID and returns the snapshot directory. It is intended to be used for creating a ledger by snapshot for testing purpose.

func NewInitializer

func NewInitializer(testLedgerDir string) *ledgermgmt.Initializer

NewInitializer returns an instance of ledgermgmt Initializer with minimum fields populated so as not to cause a failure during construction of LedgerMgr. This is intended to be used for creating an instance of LedgerMgr for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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