# Codecov configuration for bitrep.
#
# Coverage is generated by the `coverage` job in .github/workflows/supply-chain.yml
# (cargo-llvm-cov over the core `bitrep` crate) and uploaded to Codecov. This file
# sets an honest, achievable target so the status check and the README badge are
# green at bitrep's real coverage — without chasing 100% (the thin FFI wrappers in
# bindings/ and generated wasm glue are intentionally out of scope).
coverage:
precision: 1
round: down
# Badge/gradient range: red at 60, green at/above 80. bitrep sits ~81%, so the
# codecov badge renders green. This is a display range, not a gate.
range: "60...80"
status:
# Project coverage is the real gate: green when total coverage is within 2
# points of 80% or better. At ~81% this passes comfortably.
project:
default:
target: 80%
threshold: 2%
# Patch coverage is informational only: it must not red a PR that touches
# lines the suite legitimately does not cover (e.g. platform-specific paths).
patch:
default:
informational: true
# Comment on PRs but never let a Codecov hiccup block a merge.
comment:
layout: "reach, diff, flags, files"
require_changes: false