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

rm-hull / dot-block / 27101107513
61%

Build:
DEFAULT BRANCH: main
Ran 07 Jun 2026 06:30PM UTC
Jobs 1
Files 26
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

07 Jun 2026 06:30PM UTC coverage: 61.025% (+13.1%) from 47.907%
27101107513

push

github

web-flow
feat: add integrarion test (+support graceful shutdown and optional IP2Location) (#144)

This PR introduces several improvements to server lifecycle management, configuration flexibility, and testing.

### Changes

- **Graceful Shutdown**:
    - Updated `RunServer` to accept `context.Context`.
    - Implemented `monitorShutdown` to ensure HTTP, UDP DNS, TCP DNS, and DoT servers shut down cleanly.
    - Integrated `signal.NotifyContext` in `main.go` to trigger shutdown on `SIGINT`/`SIGTERM`.
    - Switched to `errgroup.WithContext` for better group lifecycle management.

- **Optional IP2Location**:
    - Added `DisableIp2Location` configuration flag.
    - Refactored IP2Location initialization into a dedicated method.
    - Added safety checks in metrics recording to handle disabled geolocation.

- **Local Blocklist Support**:
    - Added support for `file://` URIs in blocklists, allowing local files to be used as sources.

- **Integration Testing**:
    - Added `internal/integration_test.go` which performs end-to-end tests of the server's DNS functionality across UDP, TCP, and DoT (plain) protocols.

- **General Cleanup**:
    - Various formatting and alignment fixes.

63 of 95 new or added lines in 5 files covered. (66.32%)

1215 of 1991 relevant lines covered (61.02%)

883.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
58.45
58.45% internal/app.go
4
0.0
0.0% main.go
3
16.22
16.22% internal/downloader/download.go
2
97.56
0.03% internal/metrics/request_snapshot.go
Jobs
ID Job ID Ran Files Coverage
1 27101107513.1 07 Jun 2026 06:30PM UTC 26
61.02
GitHub Action Run
Source Files on build 27101107513
  • Tree
  • List 26
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1a8355f7 on github
  • Prev Build on main (#27100817193)
  • Next Build on main (#27101957393)
  • 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