Skip to content

feat(zhtest): add AnError sentinel and AssertWithin assertion - #176

Merged
alexferl merged 1 commit into
masterfrom
assert_within
May 28, 2026
Merged

alexferl merged 1 commit into
masterfrom
assert_within

Conversation

@alexferl

Copy link
Copy Markdown
Owner

Add AnError sentinel error for mock return values and AssertWithin for floating-point range assertions. Includes tests for both and a nolint directive for the non-standard error variable name.

Add `AnError` sentinel error for mock return values and
`AssertWithin` for floating-point range assertions. Includes
tests for both and a nolint directive for the non-standard
error variable name.

Signed-off-by: alexferl <me@alexferl.com>
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 26550390738

Coverage decreased (-0.04%) to 93.923%

Details

  • Coverage decreased (-0.04%) from the base build.
  • Patch coverage: 7 of 7 lines across 1 file are fully covered (100%).
  • 5 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

5 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
router.go 3 96.67%
internal/bind/registry.go 2 82.89%

Coverage Stats

Coverage Status
Relevant Lines: 11337
Covered Lines: 10648
Line Coverage: 93.92%
Coverage Strength: 166.52 hits per line

💛 - Coveralls

@alexferl
alexferl merged commit 09e8a7e into master May 28, 2026
9 checks passed
@alexferl
alexferl deleted the assert_within branch May 28, 2026 02:14
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.

2 participants