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

agronholm / cbor2 / 41185223149
96%

Build:
DEFAULT BRANCH: master
Ran 31 Oct 2026 08:35AM UTC
Jobs 1
Files 7
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

31 Oct 2026 08:35AM UTC coverage: 95.119% (-0.4%) from 95.475%
41185223149

push

github

web-flow
Isolate string references in encode_to_bytes from the outer namespace (#356)

Strings encoded via encode_to_bytes() were registered in the string reference namespace of the enclosing encode operation. When called from a default hook, this had two consequences:

- a string returned by the hook could later be emitted as a string
  reference that the decoder then resolved to the wrong value (or failed
  to resolve at all), since the decoder's namespace indexes only the
  values actually written to the outer stream
- the bytes returned by the hook could contain string references that
  index the outer namespace, making them impossible to decode as the
  standalone CBOR item the method promises to return

Give the nested encoding a namespace of its own instead, mirroring how encode_semantic() sets the outer namespace aside for a tag 256 value.

---------

Co-authored-by: Z User <z@container>
Co-authored-by: 17krishna8 <17krishna8@users.noreply.github.com>

13 of 13 new or added lines in 1 file covered. (100.0%)

10 existing lines in 1 file now uncovered.

2514 of 2643 relevant lines covered (95.12%)

81960.65 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
94.01
-0.74% rust/decoder.rs
Jobs
ID Job ID Ran Files Coverage
1 41185223149.1 31 Oct 2026 08:35AM UTC 7
95.12
GitHub Action Run
Source Files on build 41185223149
  • Tree
  • List 7
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41185223149
  • a24e1360 on github
  • Prev Build on master (#40580168735)
  • Next Build on master (#41253820378)
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