uber / uber/h3

Full branch test coverage

Open
#214 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.