Full branch test coverage
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 6.5k
- Forks
- 627
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 6
Description
As mentioned in #213, the branches were not covered by our existing tests. Lcov (at least in the setting we use) reports only source code line coverage, but not branch coverage.
We should either have lcov or another tool report branch coverage, or if not possible have the formatter enforce that statements can't be on the same line as the if statement to enforce branch coverage.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing issue #213 and the repository's current lcov and formatter configuration, since no specific files or tests are named here. Determine whether the tooling can report branch coverage; otherwise, define the formatter restriction needed to prevent statements from sharing an if statement's line, with completion verified by coverage output or formatter checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100