使用模拟 Shim 测试链代码
此测试方法涉及使用存根 shim.ChaincodeStubInterface
的模拟版本。借助此功能,您可以在将链代码部署到 Oracle Blockchain Platform 之前模拟其某些功能。您还可以使用此库为链代码构建单元测试。
注意:
并非所有存根接口都已实现。存根函数-
GetQueryResult
-
GetHistoryForKey