Download contracts/lib/openzeppelin-contracts/scripts/checks/coverage.sh from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/openzeppelin-contracts/scripts/checks/coverage.sh
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/lib/openzeppelin-contracts/scripts/checks/coverage.sh
-
curl -L -o coverage.sh https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/openzeppelin-contracts/scripts/checks/coverage.sh
485 Bytes
| set -euo pipefail | |
| export COVERAGE=true | |
| export FOUNDRY_FUZZ_RUNS=10 | |
| . scripts/set-max-old-space-size.sh | |
| # Hardhat coverage | |
| hardhat coverage | |
| if [ "${CI:-"false"}" == "true" ]; then | |
| # Foundry coverage | |
| forge coverage --report lcov --ir-minimum | |
| # Remove zero hits | |
| if [[ "$OSTYPE" == "darwin"* ]]; then | |
| sed -i '' '/,0/d' lcov.info | |
| else | |
| sed -i '/,0/d' lcov.info | |
| fi | |
| fi | |
| # Reports are then uploaded to Codecov automatically by workflow, and merged. | |