fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/util/test Index | Files

package test

import "github.com/hyperledger/fabric-sdk-go/pkg/util/test"


Package Files

test.go util.go

func AddACL Uses

func AddACL(config *common.Config, policyName, policy string) error

AddACL adds an ACL config value to channel config

func Failf Uses

func Failf(t *testing.T, template string, args ...interface{})

Failf - as t.Fatalf is not goroutine safe, this function behaves like t.Fatalf.

func Logf Uses

func Logf(template string, args ...interface{})

Logf writes to stdout and flushes. Applicable for when t.Logf can't be used.

func ModifyMaxMessageCount Uses

func ModifyMaxMessageCount(config *common.Config) (uint32, error)

ModifyMaxMessageCount increments the orderer's BatchSize.MaxMessageCount in a channel config

func VerifyACL Uses

func VerifyACL(config *common.Config, expectedPolicyName, expectedPolicy string) error

VerifyACL verifies an ACL config value

func VerifyMaxMessageCount Uses

func VerifyMaxMessageCount(config *common.Config, expected uint32) error

VerifyMaxMessageCount verifies the orderer's BatchSize.MaxMessageCount in a channel config

Package test imports 10 packages (graph) and is imported by 5 packages. Updated 2019-09-30. Refresh now. Tools for package owners.