We welcome contributions to the Hyperledger Fabric Project in many forms, and there's always plenty to do!
Please visit the contributors guide in the docs to learn how to make contributions to this exciting project.
An example of using the script as used in the CI pipeline to run Unit Tests
TEST_PKGS=github.com/hyperledger/fabric/core/chaincode/... ./scripts/run-unit-tests.sh
A number of mock implementations of interfaces are used within the unit tests. For historical reasons there are two tools with the repo to generate these mocks. mockery and counterfeiter
look in the already created mock - the first line will indicate which tool it was created with
for counterfieter, run go generate ./<dir>/...
in the
for mockery the command is mockery --name ApplicationCapabilities --dir ~/github.com/hyperledger/fabric/common/channelconfig --filename application_capabilities.go
--name
and --dir
indicate where the 'source' interface is to be mocked
This work is licensed under a Creative Commons Attribution 4.0 International License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。