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.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )