cmake -GNinja .. \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCCACHE=OFF \
-DENABLE_COVERAGE=ON \
-DENABLE_BRANCH_COVERAGE=ON
ninja coverage-check-all
Be patient, it takes a long time to complete.
Open the generated `check-all.coverage/index.html` and navigate through
the coverage report.
With secp256k1 standalone:
cmake -GNinja .. \
-DCMAKE_C_COMPILER=gcc \
-DCCACHE=OFF \
-DSECP256K1_ENABLE_COVERAGE=ON \
-DSECP256K1_ENABLE_BRANCH_COVERAGE=ON
ninja coverage-check-secp256k1