Use a Mock Shim to Test a Chaincode
This method of testing involves using a mock version of the stub
shim.ChaincodeStubInterface
. With this you can simulate some
functionality of your chaincode before deploying it to Oracle Blockchain
Platform. You can also use this library to build unit tests for your chaincode.
Note:
Not all interfaces of the stub are implemented. Stub functions-
GetQueryResult
-
GetHistoryForKey