fabric: github.com/hyperledger/fabric/core/ledger/testutil Index | Files

package testutil

import "github.com/hyperledger/fabric/core/ledger/testutil"


Package Files


func ParseTestParams Uses

func ParseTestParams() []string

ParseTestParams parses tests params

func ResetConfigToDefaultValues Uses

func ResetConfigToDefaultValues()

ResetConfigToDefaultValues resets configurations optins back to defaults

func SetupCoreYAMLConfig Uses

func SetupCoreYAMLConfig()

SetupCoreYAMLConfig sets up configurations for testing

func SetupTestConfig Uses

func SetupTestConfig()

SetupTestConfig sets up configurations for tetsing

type TestRandomNumberGenerator Uses

type TestRandomNumberGenerator struct {
    // contains filtered or unexported fields

TestRandomNumberGenerator a random number generator for testing

func NewTestRandomNumberGenerator Uses

func NewTestRandomNumberGenerator(maxNumber int) *TestRandomNumberGenerator

NewTestRandomNumberGenerator constructs a new `TestRandomNumberGenerator`

func (*TestRandomNumberGenerator) Next Uses

func (randNumGenerator *TestRandomNumberGenerator) Next() int

Next generates next random number

Package testutil imports 8 packages (graph) and is imported by 42 packages. Updated 2018-10-11. Refresh now. Tools for package owners.