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

rm-hull / dot-block / 30497775305
67%
main: 67%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/docker/login-action-4.5.2
DEFAULT BRANCH: main
Ran 29 Jul 2026 10:56PM UTC
Jobs 1
Files 43
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

29 Jul 2026 10:54PM UTC coverage: 67.412% (+0.03%) from 67.378%
30497775305

Pull #258

github

rm-hull
refactor: optimize blocklist loader with streaming and buffering

- Replaced line counting with a fast `io.Reader` buffer scan to estimate
 bloom filter size.
- Refactored `stream` to accept `io.Reader`, decoupling file I/O from
parsing logic.
- Reduced memory overhead by processing blocklists in a single pass.

```mermaid
sequenceDiagram
    participant B as BlockList.processFile
    participant F as File (io.Reader)
    participant C as countNewlines
    participant S as stream

    B->>C: Read file to estimate size
    C->>B: Return line count
    B->>B: Seek(0, io.SeekStart)
    B->>S: Stream file with scanner
    S->>B: Return parsed metadata
    B->>B: Apply Bloom Filter
```
Pull Request #258: refactor: fetch blocklists asynchronously on startup

51 of 59 new or added lines in 3 files covered. (86.44%)

4 existing lines in 2 files now uncovered.

2141 of 3176 relevant lines covered (67.41%)

551.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
92.55
0.65% internal/blocklist/blocklist.go
3
92.68
6.75% internal/blocklist/loader.go

Coverage Regressions

Lines Coverage ∆ File
2
92.55
0.65% internal/blocklist/blocklist.go
2
73.53
-2.94% internal/forwarder/cache.go
Jobs
ID Job ID Ran Files Coverage
1 30497775305.1 29 Jul 2026 10:56PM UTC 43
67.41
GitHub Action Run
Source Files on build 30497775305
  • Tree
  • List 43
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #258
  • PR Base - main (#30487056596)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc