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

stouset / sodium / 159 / 8
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: travis-support
DEFAULT BRANCH: master
Ran 03 Jul 2013 02:45AM UTC
Files 15
Run time –
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

03 Jul 2013 02:38AM UTC coverage: 99.75%. First build
jruby-head, LIBSODIUM_MIRROR="https://github.com/jedisct1/libsodium/tarball/%s" LIBSODIUM_VERSION="master"

push

travis-ci

stouset
Only tr once we've set the encoding to BINARY

String#tr fails if the input string contains invalid Unicode
characters. This is fine, but only if the string realizes that it's
binary data rather than Unicode encoded characters. So we force it to
binary mode *before* we String#tr.

The String#dup doesn't actually duplicate the string's contents, or we'd
worry about making a copy of the potentially-sensitive data in
memory. This isn't an issue for the exact reason we're doing String#tr
in the first place: Ruby is smart enough to copy-on-write the memory
used for the String.

399 of 400 relevant lines covered (99.75%)

10.75 hits per line

Source Files on job 159.8 (jruby-head, LIBSODIUM_MIRROR="https://github.com/jedisct1/libsodium/tarball/%s" LIBSODIUM_VERSION="master" )
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 159
  • Travis Job 159.8
  • 9c6a6505 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