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

go-pkgz / auth / 32996973277
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: feat/telegram-api-url
DEFAULT BRANCH: master
Ran 26 Aug 2026 06:00PM UTC
Jobs 1
Files 25
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

26 Aug 2026 05:56PM UTC coverage: 86.663% (+0.6%) from 86.097%
32996973277

Pull #316

github

paskal
Drop the parse error rather than wrap it, and pin that no rejection echoes the base

*url.Error prints its URL field verbatim, and the parse branch runs before
every check below it, so a base that is both credentialed and malformed never
reaches the userinfo case and carries its credentials into whatever logs the
constructor failure:

    invalid telegram api base url: parse "https://alice:topsecret@example.com/%zz":
    invalid URL escape "%zz"

A "%" in a proxy password is enough, as is a control character or an unclosed
bracket. Unwrapping to the inner error is no safer: an invalid port quotes it
back as `invalid port ":s3cr3t" after host`, and the IPv6 zone path does the
same. The whole parse boundary is untrusted configuration, so the error says
the base url is not valid and says nothing else.

The test asserted only that an error came back, so reverting every rejection
to interpolate the value again left it green. It now also requires the message
not to contain the base it refused, which covers all seven rejection paths,
and carries the two shapes that reach the parse branch: credentials beside
malformed escaping, and a secret where the port belongs.
Pull Request #316: Make the Telegram API base URL configurable, and close what that opens

115 of 121 new or added lines in 1 file covered. (95.04%)

3301 of 3809 relevant lines covered (86.66%)

9.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.68
provider/telegram.go
Jobs
ID Job ID Ran Files Coverage
1 32996973277.1 26 Aug 2026 06:00PM UTC 25
86.66
GitHub Action Run
Source Files on build 32996973277
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #316
  • PR Base - master (#32996657339)
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