Documentation ¶
Index ¶
- func InTransaction(stub *shim.MockStub, do func(string))
- func MockInit(t *testing.T, stub *shim.MockStub, args ...interface{}) (string, *peer.Response, *response.Payload, error)
- func MockInvoke(t *testing.T, stub *shim.MockStub, function string, args ...interface{}) (string, *peer.Response, *response.Payload, error)
- func MockTransactionEnd(stub *shim.MockStub, tx string)
- func MockTransactionStart(stub *shim.MockStub) string
- func MustMarshal(v interface{}) string
- func NewMock(name string, r router.Router) *shim.MockStub
- func NewTimeRand() *rand.Rand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InTransaction ¶
func MockInvoke ¶
func MockTransactionEnd ¶
func MockTransactionStart ¶
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 NewTimeRand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.