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

rm-hull / dot-block / 26772250441
45%
main: 47%

Build:
Build:
LAST BUILD BRANCH: fix/hot-paths
DEFAULT BRANCH: main
Ran 01 Jun 2026 05:56PM UTC
Jobs 1
Files 20
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 05:55PM UTC coverage: 45.098% (+1.8%) from 43.282%
26772250441

Pull #132

github

gemini-pr-agent[bot]
chore: iterative updates from Gemini based on PR comment

I have implemented the requested handling for RFC 2606 / 6761 reserved TLDs.

### Changes:
1.  **Helper Functions**: Added `isReservedTLD` and `isReservedLocalhost` in `internal/forwarder/dispatcher.go`.
2.  **Dispatcher Logic**: Refactored `processQuestion` to return a `dns.Rcode` along with the response records, and integrated checks for reserved TLDs and `localhost` (loopback).
3.  **HandleDNSRequest**: Updated the request processing loop to correctly respect the `Rcode` returned by `processQuestion`.
4.  **Unit Tests**: Added `TestDNSDispatcher_ReservedTLDs` in `internal/forwarder/dispatcher_test.go` to verify correct behavior for each reserved suffix.

All tests are passing.
Pull Request #132: fix: Short circuit DNS-SD queries

55 of 56 new or added lines in 1 file covered. (98.21%)

24 existing lines in 1 file now uncovered.

690 of 1530 relevant lines covered (45.1%)

1129.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
88.01
2.69% internal/forwarder/dispatcher.go

Coverage Regressions

Lines Coverage ∆ File
24
88.01
2.69% internal/forwarder/dispatcher.go
Jobs
ID Job ID Ran Files Coverage
1 26772250441.1 01 Jun 2026 05:56PM UTC 20
45.1
GitHub Action Run
Source Files on build 26772250441
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #132
  • PR Base - main (#26748997607)
  • 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