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

rm-hull / dot-block / 20678078683
43%

Build:
DEFAULT BRANCH: main
Ran 03 Jan 2026 01:43PM UTC
Jobs 1
Files 18
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

03 Jan 2026 01:43PM UTC coverage: 42.278% (+0.6%) from 41.681%
20678078683

push

github

web-flow
feat: add blocked domains metric and expand limits (#59)

* feat: add blocked domains metric and expand limits

- Introduce `dns_top_blocked_domains` to track frequently filtered
  hostnames.
- Move `TopDomains` incrementing after the blocklist check to ensure
  it only reflects permitted traffic.
- Increase `TOP_K` from 20 to 50 for enhanced visibility across
  clients and domains.

```mermaid
graph TD
    Q[DNS Question] --> B{Blocked?}
    B -- Yes --> BD[TopBlockedDomains]
    B -- No --> AD[TopDomains]
    AD --> C[Forward/Cache]
```

* refactor: deduplicate SpaceSaver stats collection

Extracts the closure logic for gathering Top-N statistics into a
reusable helper function `newSpaceSaverStatsCallback`.

- Reduces boilerplate in `dns_metrics.go`.
- Improves maintainability by centralizing the `SpaceSaver` to map
  conversion logic.
- Adds an initial capacity hint to the results map.

29 of 34 new or added lines in 2 files covered. (85.29%)

11 existing lines in 2 files now uncovered.

490 of 1159 relevant lines covered (42.28%)

0.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
83.21
1.91% internal/metrics/dns_metrics.go

Uncovered Existing Lines

Lines Coverage ∆ File
5
83.21
1.91% internal/metrics/dns_metrics.go
6
78.76
-1.24% internal/forwarder/dispatcher.go
Jobs
ID Job ID Ran Files Coverage
1 20678078683.1 03 Jan 2026 01:43PM UTC 18
42.28
GitHub Action Run
Source Files on build 20678078683
  • Tree
  • List 18
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8e856cb5 on github
  • Prev Build on main (#20624434744)
  • Next Build on main (#20699257371)
  • 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