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

stouset / sodium
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: travis-support
DEFAULT BRANCH: master
Repo Added 17 Mar 2013 12:01AM UTC
Files 385
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

LAST BUILD ON BRANCH set-coding-before-tr
branch: set-coding-before-tr
CHANGE BRANCH
x
Reset
  • set-coding-before-tr
  • add-random
  • add-secret-box
  • add-signature-support
  • autodetect-sodium-constants
  • extend-sodium-buffer
  • garbage-collection-safety
  • master
  • optimize-pointers-for-inout
  • release-0.6.1
  • release-0.7.0
  • remove-unnecessary-locking
  • reorganize-ffi
  • run-coverage-locally
  • secure-memory-usage
  • sign-operation-consistency
  • sodium-auth-class-methods
  • sodium-hash
  • sodium-onetimeauth
  • travis-support

pending completion
159

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.

526 of 527 relevant lines covered (99.81%)

187.67 hits per line

Relevant lines Covered
Build:
Build:
527 RELEVANT LINES 526 COVERED LINES
187.67 HITS PER LINE
Source Files on set-coding-before-tr
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
159 set-coding-before-tr 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 b... push 03 Jul 2013 02:38AM UTC stouset travis-ci pending completion  
See All Builds (153)
  • Repo on GitHub
  • CI Project
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