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

tarantool / go-storage / 26221122596
90%

Build:
DEFAULT BRANCH: master
Ran 21 May 2026 10:44AM UTC
Jobs 1
Files 47
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

21 May 2026 10:43AM UTC coverage: 89.99% (+0.05%) from 89.943%
26221122596

push

github

bigbes
integrity: add WithKeyPrefix option

Add WithKeyPrefix option to namer.LayeredNamer and thread it through
integrity.CodecBuilder so codecs can be built with a fixed path prefix
prepended to every emitted/parsed key.

- Let two codecs sit in disjoint sub-trees of one storage.Storage so
  they can be committed atomically in a single integrity.Tx, which
  cannot span multiple storage handles the way storage.Prefixed wrappers
  can.
- Validate the prefix the same way storage.Prefixed does: must start
  with '/', must not end with '/'; empty is a no-op.
- Require the prefix to be followed by '/' (or the entire key) on parse,
  so a prefix like "/p" does not silently match sibling sub-trees like
  "/pp/...", "/p2/..." or "/papa/...". Such keys consistently return
  namer.ErrKeyPrefixMissing; ErrKeyPrefixNoLeadingSlash /
  ErrKeyPrefixTrailingSlash cover malformed prefixes at construction.
- Add namer tests for validation, generation, parse round-trip, sibling
  prefix rejection, multi-segment prefix, unnamed/legacy/compact layouts,
  multiple hashers and signers, empty-is-noop, and ParseKeys grouping.
- Add integrity tests covering atomic two-codec commit, predicate rollback
  across prefixes, disjoint key spaces, TxRange isolation, and the
  documented doubled-prefix behaviour when stacking WithKeyPrefix on top
  of storage.Prefixed.

54 of 54 new or added lines in 2 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

3650 of 4056 relevant lines covered (89.99%)

533.3 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
88.54
-2.08% driver/etcd/etcd.go
Jobs
ID Job ID Ran Files Coverage
1 26221122596.1 21 May 2026 10:44AM UTC 47
89.99
GitHub Action Run
Source Files on build 26221122596
  • Tree
  • List 47
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 669974a6 on github
  • Prev Build on master (#26094001569)
  • Next Build on master (#26233039368)
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