Versions in this module Expand all Collapse all v1 v1.0.0 Jul 11, 2017 Changes in this version + func AssertContains(t testing.TB, slice interface{}, value interface{}) + func AssertContainsAll(t testing.TB, sliceActual interface{}, sliceExpected interface{}) + func AssertEquals(t testing.TB, actual interface{}, expected interface{}) + func AssertError(t testing.TB, err error, message string) + func AssertNil(t testing.TB, value interface{}) + func AssertNoError(t testing.TB, err error, message string) + func AssertNotEquals(t testing.TB, actual interface{}, expected interface{}) + func AssertNotNil(t testing.TB, value interface{}) + func AssertPanic(t testing.TB, msg string) + func AssertSame(t testing.TB, actual interface{}, expected interface{}) + func ConstructBlock(t *testing.T, blockNum uint64, previousHash []byte, simulationResults [][]byte, ...) *common.Block + func ConstructBytesProposalResponsePayload(version string, simulationResults []byte) ([]byte, error) + func ConstructRandomBytes(t testing.TB, size int) []byte + func ConstructTestBlock(t *testing.T, blockNum uint64, numTx int, txSize int) *common.Block + func ConstructTestBlocks(t *testing.T, numBlocks int) []*common.Block + func ConstructTransaction(_ *testing.T, simulationResults []byte, sign bool) (*common.Envelope, string, error) + func Contains(slice interface{}, value interface{}) bool + type BlockGenerator struct + func NewBlockGenerator(t *testing.T, ledgerID string, signTxs bool) (*BlockGenerator, *common.Block) + func (bg *BlockGenerator) NextBlock(simulationResults [][]byte) *common.Block + func (bg *BlockGenerator) NextTestBlock(numTx int, txSize int) *common.Block + func (bg *BlockGenerator) NextTestBlocks(numBlocks int) []*common.Block