SHIM mocking
The SHIM package provides a comprehensive mocking model that can be used to test chaincodes. In our unit tests, we will use the MockStub type, which provides an implementation of ChaincodeStubInterface for unit-testing chaincodes.
The SHIM package provides a comprehensive mocking model that can be used to test chaincodes. In our unit tests, we will use the MockStub type, which provides an implementation of ChaincodeStubInterface for unit-testing chaincodes.