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

go-pkgz / auth / 32812858838
87%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2026 05:29AM 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

25 Aug 2026 05:26AM UTC coverage: 86.097%. Remained the same
32812858838

push

github

web-flow
Cover the cookie attributes from Opts, and assert the avatar path instead of byte counts (#317)

* Assert what the avatar path promises rather than encoded byte counts

Seven tests pinned the exact encoded size of a PNG the standard library
produces, and Go 1.27 changed the encoder, so all seven fail on a clean
checkout with nothing in the repository touched: 569 becomes 507, 999
becomes 1633, 992 becomes 1617, and 960 becomes 1564 in four places.

They assert what the code actually owes its caller now. The generator
emits a 300x300 identicon and the proxy resizes to its configured limit,
and neither moves with a Go release, so the geometry is the durable
claim and the byte count never was.

Three smaller things in the same tests, all of which let a real
regression through:

- exact dimensions rather than an upper bound, since LessOrEqual passes
  a 60x60 result where the resize limit is 120
- the Positive and NotEmpty assertions that sit after a successful
  image.Decode, which cannot fail if the decode succeeded
- nothing in either module inspected a pixel, so a resize that lost its
  Scale call still encodes a correctly sized, entirely transparent PNG
  and the suite stays green. TestAvatar_resize now asserts the result is
  not uniform, which is the only assertion that would notice

CI cannot see any of this: both workflows pin go-version 1.26. Verified
on 1.27 natively and in golang:1.27-alpine, where every package in both
modules passes, and each old assertion fails when restored.

* Cover the cookie attributes Set and Reset take from the service config

Secure and SameSite are read from Opts in four places, the two cookies Set
writes and the two Reset writes, and every existing test in the file runs with
SecureCookies false and the zero SameSite, which emits no attribute at all. All
four could stop passing them through and the suite would stay green, which is
the plumbing this covers, along with the deliberate HttpOnly difference between
the to... (continued)

3214 of 3733 relevant lines covered (86.1%)

9.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32812858838.1 25 Aug 2026 05:29AM UTC 25
86.1
GitHub Action Run
Source Files on build 32812858838
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a1079c65 on github
  • Prev Build on refs/tags/v1.26.0 (#32227263999)
  • Next Build on master (#32812858844)
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