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

tarantool / go-storage / 28269777242
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: bigbes/gh-no-refactor-parts
DEFAULT BRANCH: master
Ran 26 Jun 2026 10:55PM UTC
Jobs 1
Files 49
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 Jun 2026 10:54PM UTC coverage: 89.249% (-0.008%) from 89.257%
28269777242

push

github

bigbes
hasher,crypto: auto/hex/bin encoding modes (v2)

The hasher and crypto constructors take a single encoding Mode via
WithMode(), replacing the earlier hex-by-default / WithRaw() boolean:

- ModeAuto (default): produces raw bytes and, on verification, accepts a
  stored digest/signature in either raw or lower-case hex form. Detection
  is by length (unambiguous: raw is N bytes, hex is 2N), not heuristic.
- ModeHex: produces and accepts only hex.
- ModeBin: produces and accepts only raw bytes.

Because auto writes raw, the default on-disk format is unchanged from v1
while reads tolerate hex, so a store can migrate to hex incrementally.

The Hasher interface gains Verify(data, stored) so the integrity
validator can compare encoding-aware instead of byte-equal; the hash and
signature validator branches are now symmetric. crypto.NewRSAPSS is the
renamed NewRSAPSSSignerVerifier. Docs and fixtures updated; hasher and
crypto are lint-clean and all short tests pass.

111 of 123 new or added lines in 5 files covered. (90.24%)

3387 of 3795 relevant lines covered (89.25%)

28.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
71.43
2.68% hasher/hasher.go
Jobs
ID Job ID Ran Files Coverage
1 28269777242.1 26 Jun 2026 10:55PM UTC 49
89.25
GitHub Action Run
Source Files on build 28269777242
  • Tree
  • List 49
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 69ddac6d on github
  • Prev Build on v2 (#28269320976)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc