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

square / go-jose / 504
92%
master: 90%

Build:
Build:
LAST BUILD BRANCH: unmarshal_number_to_int64
DEFAULT BRANCH: master
Ran 24 Mar 2017 12:59AM UTC
Jobs 4
Files 0
Run time 1s
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

pending completion
504

push

travis-ci

csstaub
Preserve integers when normalizing JWT claims (fixes #142)

We normalize claims for tokens given to us in the builder by marshaling
and then unmarshaling as a JSON object. However, because JSON officially
only supports floating-point numbers, this loses precision for integers
embedded in structs. We switch to using json.Decoder (with UseNumber
option) to decode numbers into json.Number, which preserves the precise
value for both integers and floats.

2372 of 2581 relevant lines covered (91.9%)

971.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 504.1 24 Mar 2017 12:59AM UTC 0
91.9
Travis Job 504.1
2 504.2 24 Mar 2017 12:59AM UTC 0
91.9
Travis Job 504.2
3 504.3 24 Mar 2017 12:59AM UTC 0
91.9
Travis Job 504.3
4 504.4 24 Mar 2017 01:00AM UTC 0
91.9
Travis Job 504.4
Source Files on build 504
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #504
  • b367cc5c on github
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