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

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

Build:
Build:
LAST BUILD BRANCH: bigbes/gh-no-refactor-parts
DEFAULT BRANCH: master
Ran 26 Jun 2026 10:48PM 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:42PM UTC coverage: 89.196% (-0.06%) from 89.257%
28269538922

Pull #115

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.
Pull Request #115: hasher,crypto: hex output by default with opt-out (v2)

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

2 existing lines in 1 file now uncovered.

3385 of 3795 relevant lines covered (89.2%)

28.77 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
71.43
2.68% hasher/hasher.go

Coverage Regressions

Lines Coverage ∆ File
2
88.54
-2.08% driver/etcd/etcd.go
Jobs
ID Job ID Ran Files Coverage
1 28269538922.1 26 Jun 2026 10:48PM UTC 49
89.2
GitHub Action Run
Source Files on build 28269538922
  • Tree
  • List 49
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #115
  • PR Base - 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