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

rm-hull / dot-block / 26694976677
47%

Build:
DEFAULT BRANCH: main
Ran 30 May 2026 09:09PM UTC
Jobs 1
Files 19
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

30 May 2026 09:08PM UTC coverage: 41.393% (+0.4%) from 41.0%
26694976677

push

github

web-flow
feat: add `--cache-ttl-floor` for non-sensitive DNS records (#118)

* feat: add `--cache-ttl-floor` for non-sensitive DNS records

Introduces a configurable minimum TTL for cached DNS entries. Entries
not considered "freshness sensitive" (e.g., SOA, TXT, or those matching
OCSP/CRL/PKI patterns) will now respect this floor to improve cache
hit rates for static records.

* refactor: use time.Duration for CacheTtlFloor

Change `CacheTtlFloor` from an integer to `time.Duration` to improve
readability, type safety, and consistency with Go's time handling
conventions.

* fix: validate cacheTtlFloor in NewDNSDispatcher

Ensure `cacheTtlFloor` is non-negative to prevent unexpected behavior
during cache initialization. Added a unit test to verify the error
handling.

* refactor: use effectiveTTL variable in TTL check

Clean up the redundant duration calculation by using the existing
`effectiveTTL` variable for readability.

22 of 30 new or added lines in 3 files covered. (73.33%)

505 of 1220 relevant lines covered (41.39%)

0.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
84.38
-1.75% internal/forwarder/dispatcher.go
1
0.0
0.0% internal/app.go
1
0.0
0.0% main.go
Jobs
ID Job ID Ran Files Coverage
1 26694976677.1 30 May 2026 09:09PM UTC 19
41.39
GitHub Action Run
Source Files on build 26694976677
  • Tree
  • List 19
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 00a691fe on github
  • Prev Build on main (#26694843854)
  • Next Build on main (#26695069383)
  • 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