test

package
v0.0.0-...-75eda33 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InTransaction

func InTransaction(stub *shim.MockStub, do func(string))

func MockInit

func MockInit(t *testing.T, stub *shim.MockStub, args ...interface{}) (string, *peer.Response, *response.Payload, error)

func MockInvoke

func MockInvoke(t *testing.T, stub *shim.MockStub, function string, args ...interface{}) (string, *peer.Response, *response.Payload, error)

func MockTransactionEnd

func MockTransactionEnd(stub *shim.MockStub, tx string)

func MockTransactionStart

func MockTransactionStart(stub *shim.MockStub) string

func MustMarshal

func MustMarshal(v interface{}) string

MustMarshal convierte a JSON el valor v suministrado y genera un panic si hay algún error en el proceso.

ATENCION: SOLO PARA TESTING

func NewMock

func NewMock(name string, r router.Router) *shim.MockStub

func NewTimeRand

func NewTimeRand() *rand.Rand

Types

This section is empty.

Jump to

Keyboard shortcuts

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