diff --git a/.agents/project-standards.md b/.agents/project-standards.md index 73571ad..a0fff11 100644 --- a/.agents/project-standards.md +++ b/.agents/project-standards.md @@ -329,6 +329,10 @@ alias and constructor from the public package. - The project aims for complete coverage on core internal data-structure packages: `internal/list`, `internal/sortedlist`, `internal/deque`, `internal/heap`, and `internal/prioritymap`. +- CI requires at least 95% coverage across library packages and 100% coverage + for changed lines. The cross-implementation benchmark harness under + `internal/benchmarks` remains part of build and test verification but is + excluded from the published coverage percentage. - Internal test files should mirror the implementation method order as much as practical. This makes coverage gaps easy to map back to code. - Prefer direct assertions over helper-heavy test DSLs. diff --git a/README.md b/README.md index c4c2b30..c536aac 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,8 @@ CI builds and tests every package with the minimum supported Go release and the latest stable release. The published coverage report measures library packages; the cross-implementation benchmark harness under `internal/benchmarks` remains part of the build and test suite but is excluded from the coverage percentage. +Codecov requires at least 95% project coverage and 100% coverage for changed +lines. ## Status diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..32bf158 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,10 @@ +coverage: + status: + project: + default: + target: 95% + threshold: 0% + patch: + default: + target: 100% + threshold: 0%