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

Kochava / envi / 22 / 1
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v1.0.2
DEFAULT BRANCH: master
Ran 02 Mar 2018 08:25PM UTC
Files 8
Run time 0s
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

02 Mar 2018 08:24PM UTC coverage: 97.076%. Remained the same
22.1

push

travis-ci

nilium
Add depth checks for cyclical / nested types

This change affects all unmarshaling for nested values but prevents
infinitely recursing while trying to unmarshal cyclical types.

This adds a max depth of 8 for structs where no fields are defined
whatsoever. The counter is reset if a value if the struct containing
the field has any other field set. If the struct has no other fields,
then depth cannot be reset right now.

This is done by refactoring Reader into a separate readState type that
tracks the current depth and, possibly later, other information about
read state. The readState, for the most part, is just a Reader wrapper.

Further improvements could be made to use an optional interface to scan
for known keys. This just deals with the immediate problem of unbounded
recursion.

Fixes #4.

498 of 513 relevant lines covered (97.08%)

110.1 hits per line

Source Files on job 22.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 22.1
  • 1c16eb50 on github
  • Prev Job for on issues/4 (#20.1)
  • Next Job for on issues/4 (#24.1)
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