Skip to content

Provide coverage for an iterator cell case#1183

Open
isaacbrodsky wants to merge 3 commits into
uber:masterfrom
isaacbrodsky:cover-more-cases
Open

Provide coverage for an iterator cell case#1183
isaacbrodsky wants to merge 3 commits into
uber:masterfrom
isaacbrodsky:cover-more-cases

Conversation

@isaacbrodsky

@isaacbrodsky isaacbrodsky commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Provides coverage for a branch in iterators.c where the iterator is expecting to need to skip a child, but ultimately doesn't. The case is reachable if the iterator is modified by the caller, but not during normal operation. I didn't choose to mark it NEVER/ALWAYS because a caller using the iterators could potentially reach it.

@isaacbrodsky isaacbrodsky changed the title Provide coverage for an iterator cell case, and tag a NEVER case in _hex2dToVec3 Provide coverage for an iterator cell case Jun 26, 2026
@coveralls

coveralls commented Jun 26, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 99.195% (+0.02%) from 99.176% — isaacbrodsky:cover-more-cases into uber:master

Comment thread src/h3lib/lib/faceijk.c Outdated
if (substrate) {
r *= M_ONETHIRD;
if (isResolutionClassIII(res)) r *= M_RSQRT7;
// Never occurs because every case where this function is called with

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR accidentally including the other one?

@isaacbrodsky isaacbrodsky Jun 28, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - that was supposed to be moved to #1184. I pushed the commit to remove from this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants