• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / dot-block / 26784595023
47%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 09:59PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Jun 2026 09:58PM UTC coverage: 45.391% (+0.3%) from 45.07%
26784595023

push

github

web-flow
feat: filter noise in DNS error logging (#134)

* feat: filter noise in DNS error logging

- Introduce `RcodeError` to categorize DNS errors.
- Update `reportError` to check `ShouldLog` before logging and sending
to Sentry.
- Suppress logs and Sentry alerts for `NXDOMAIN` errors.
- Add tests to verify error logging behavior for `NXDOMAIN` vs
`SERVFAIL`.

* Update internal/forwarder/errors.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: handle nil error in RcodeError.Error()

Prevent potential nil pointer dereference by providing a fallback
string representation using the Rcode value when the wrapped error
is nil.

* refactor: improve test setup and suppress NOTIMP logs

- Refactored `setupDispatcherTest` to accept a custom `slog.Logger`,
reducing code duplication in test files.
- Updated `RcodeError.ShouldLog` to exclude `RcodeNotImplemented` from
error logs.
- Added a new test case for `NOTIMP` RCode handling to verify logging
behavior.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

20 of 27 new or added lines in 2 files covered. (74.07%)

719 of 1584 relevant lines covered (45.39%)

1146.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
65.0
internal/forwarder/errors.go
Jobs
ID Job ID Ran Files Coverage
1 26784595023.1 01 Jun 2026 09:59PM UTC 21
45.39
GitHub Action Run
Source Files on build 26784595023
  • Tree
  • List 21
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9003d61a on github
  • Prev Build on main (#26782665238)
  • Next Build on main (#26842860598)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc