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

rm-hull / dot-block / 31222674856
68%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2026 10:08PM UTC
Jobs 1
Files 44
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 Aug 2026 10:07PM UTC coverage: 68.243% (+0.5%) from 67.722%
31222674856

push

github

web-flow
Refactor: jasengo hostfile parser with merged upstream deps (#253)

* feat: add robust parser for hosts and blocklist files

Introduces the `internal/blocklist/hostfile` package using `jasengo`
parser combinators to parse standard hosts files and ad-block lists.
Supports IP/wildcard prefixes, domain-only entries, metadata comments,
inline comments, BOM headers, and mixed CRLF/LF line endings.

* feat: add streaming parser for blocklist and hosts files

Add `Stream` function to parse large hosts-files/blocklists from an
`io.Reader` without loading the entire file into memory, reducing memory
 overhead for large lists. Also renamed `Parse` to `ParseFile` for
clarity.

* refactor(blocklist): simplify hostfile stream parser

Streamline parsing logic by using `strings.TrimPrefix` for BOM handling,
`strings.TrimSpace` for lines, and cleaning up unused variables and
redundant error checks.

* refactor(blocklist): migrate to hostfile streaming parser

Refactor the blocklist loading mechanism to leverage the shared
`hostfile` package stream parser, removing legacy loader code and adding
 comprehensive tests.

* refactor(blocklist): extract processFile and fix empty size test

Extract file processing logic into a dedicated helper and correct the
expected size assertion for empty blocklists from 1 to 0.

* chore(deps): update jasengo and google apis dependencies

Bump `github.com/rm-hull/jasengo` to `v0.5.12` and update Google
Protobuf API/RPC generated types to latest commits.

* fix(blocklist): remove URL from file streaming error message

Simplify the error log when processing blocklist files by omitting the
redundant URL field.

* chore(deps): bump jasengo to v0.5.14

149 of 165 new or added lines in 2 files covered. (90.3%)

12 existing lines in 2 files now uncovered.

2366 of 3467 relevant lines covered (68.24%)

523.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
90.28
internal/blocklist/hostfile/parser.go
2
90.64
0.75% internal/blocklist/blocklist.go

Coverage Regressions

Lines Coverage ∆ File
11
56.4
-3.35% internal/app.go
1
90.64
0.75% internal/blocklist/blocklist.go
Jobs
ID Job ID Ran Files Coverage
1 31222674856.1 07 Aug 2026 10:08PM UTC 44
68.24
GitHub Action Run
Source Files on build 31222674856
  • Tree
  • List 44
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f2de34ac on github
  • Prev Build on main (#31210547063)
  • Next Build on main (#31222727955)
  • 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