testutils

package
v0.0.0-...-d8468af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminCert = `` /* 778-byte string literal not displayed */

	Client1Cert = `` /* 800-byte string literal not displayed */

	Client2Cert = `` /* 798-byte string literal not displayed */

	IdemixCred = `` /* 1368-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func SetCurrentCaller

func SetCurrentCaller(stub *shim.MockStub, mspID string, cert string) (*shim.MockStub, error)

func SetIdemixMockStubWithAttrs

func SetIdemixMockStubWithAttrs(stub *shim.MockStub, mspID string) (*shim.MockStub, error)

func SetMockStubWithFakeCreator

func SetMockStubWithFakeCreator(stub *shim.MockStub) (*shim.MockStub, error)

func SetMockStubWithNilCreator

func SetMockStubWithNilCreator(stub *shim.MockStub) (*shim.MockStub, error)

func WithAllowanceOf

func WithAllowanceOf(value *big.Int) func(shim.ChaincodeStubInterface, []string) (*big.Int, error)

WithAllowanceOf mocks the "default" allowances of all clients

func WithBalanceOf

func WithBalanceOf(value *big.Int) func(shim.ChaincodeStubInterface, []string) (*big.Int, error)

WithBalanceOf mocks the "default" balance of all clients

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL