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

tg123 / go-htpasswd / 26913652951
92%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2026 09:20PM UTC
Jobs 1
Files 9
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 Jun 2026 09:18PM UTC coverage: 91.582% (+0.2%) from 91.339%
26913652951

push

github

web-flow
Add File.Exists for username-only membership checks (#18)

* Add File.Exists for username-only membership checks

Useful for callers (e.g. session-refresh validators) that need to know
whether a user is currently in the htpasswd file without performing a
password match. Match returns false for both "no such user" and "wrong
password" so it cannot be used to distinguish those cases.

* Address review: fix htpasswd doc typos and add Exists test

* Guard against nil password table in Exists and Match

Return false instead of panicking when bf.passwds.Load() is nil, which
happens for a zero-value File or after a failed constructor/Reload whose
error was ignored. Covers the unresolved review comment.

12 of 12 new or added lines in 1 file covered. (100.0%)

359 of 392 relevant lines covered (91.58%)

149665.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0 - 26913652951.1 03 Jun 2026 09:20PM UTC 9
91.58
GitHub Action Run
Source Files on build 26913652951
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6bf1434e on github
  • Prev Build on master (#26746608287)
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