package
1.2.0-rc1
Repository: https://github.com/sinochem-tech/fabric.git
Documentation: pkg.go.dev

# Functions

AssertContains varifies that the slice contains the value.
AssertContainsAll varifies that sliceActual is a superset of sliceExpected.
AssertEquals varifies that the two values are equal.
AssertError varifies that the err is not nil.
AssertNil varifies that the value is nil.
AssertNoError varifies that the err is nil.
AssertNotEquals varifies that the two values are not equal.
AssertNotNil varifies that the value is not nil.
AssertPanic varifies that a panic is raised during a test.
AssertSame varifies that the two values are same.
ConstructBlock constructs a single block.
No description provided by the author
ConstructBytesProposalResponsePayload constructs a ProposalResponse byte with given chaincode version and simulationResults for testing.
ConstructRandomBytes constructs random bytes of given size.
ConstructTestBlock constructs a single block with random contents.
ConstructTestBlocks returns a series of blocks starting with blockNum=0.
ConstructTransaction constructs a transaction for testing.
Contains returns true iff the `value` is present in the `slice`.
CopyDir creates a copy of a dir.
CreateTarBytesForTest creates a tar byte array for unit testing.
No description provided by the author
NewBlockGenerator instantiates new BlockGenerator for testing.

# Structs

BlockGenerator generates a series of blocks for testing.
TarFileEntry is a structure for adding test index files to an tar.