package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
ConstructBlock constructs a single block.
ConstructBytesProposalResponsePayload constructs a ProposalResponse byte with given chaincode version and simulationResults for testing.
ConstructRandomBytes constructs random bytes of given size.
ConstructSignedTxEnv constructs a transaction envelop for tests.
ConstructSignedTxEnvWithDefaultSigner constructs a transaction envelop for tests with a default signer.
ConstructTestBlock constructs a single block with random contents.
ConstructTestBlocks returns a series of blocks starting with blockNum=0.
ConstructTransaction constructs a transaction for testing.
ConstructTransaction constructs a transaction for testing with header type.
ConstructUnsignedTxEnv creates a Transaction envelope from given inputs.
CopyDir creates a copy of a dir.
CreateTarBytesForTest creates a tar byte array for unit testing.
NewBlockGenerator instantiates new BlockGenerator for testing.
Unzip will decompress the src zip file to the dest directory.
# Structs
BlockGenerator generates a series of blocks for testing.
TarFileEntry is a structure for adding test index files to an tar.