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

romshark / datapages / 39625119564

21 Oct 2026 01:46PM UTC coverage: 52.713% (+0.01%) from 52.703%
39625119564

push

github

romshark
refactor: Pass asset hashes to the compressor

The server otherwise reuses the hash of the compressor only when
nothing wraps the compressor's handler. A wrapper that adds metrics or
a header makes the first request read each file 3 times.

Pass AssetsCompressor.Handler a function that returns the SHA-256 the
ETag cache takes of a file. The compressor hashes a file itself when
there is none, and again when it finds the file changed, since the
server keeps the hash of the old content.
AssetsCompressor has not been released.

First request of a compressible asset through a wrapped compressor
with WithAssetsCache. A text file without a typed extension reads
512 B more with WithAssetsCache.

46 of 53 new or added lines in 3 files covered. (86.79%)

78 existing lines in 6 files now uncovered.

32743 of 62116 relevant lines covered (52.71%)

4434.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.14
/runtime/httpserve/core.go


Source Not Available

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