Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MspID string
MspID peers mspid
Functions ¶
This section is empty.
Types ¶
type MockStub ¶
type MockStub struct { shim.MockStub // registered list of other MockStub chaincodes that can be called from this MockStub Invokables map[string]*MockStub // contains filtered or unexported fields }
MockStub is an implementation of ChaincodeStubInterface for unit testing chaincode. Use this instead of ChaincodeStub in your chaincode's unit test calls to Init or Invoke.
func NewMockStub ¶
NewMockStub Constructor to initialise the internal State map
func (*MockStub) GetCreator ¶
GetCreator to get creator bytes
func (*MockStub) MockInvoke ¶
MockInvoke invokes this chaincode, also starts and ends a transaction.
Click to show internal directories.
Click to hide internal directories.