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

halostatue / minitar / 45 / 10
80%
master: 82%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Nov 2016 03:50AM UTC
Files 13
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

05 Nov 2016 03:47AM UTC coverage: 79.576%. First build
ruby-head, Gemfile

push

travis-ci

halostatue
No unnecessary strings on POSIX header creation

The POSIX header creation methods created a new 512-byte string of NULL
bytes just to see if the header was an empty header. This could be simplified
with a single 512-byte constant string for comparison, but a short-circuiting
comparison will be more efficient over-all. Use the #each_byte enumerator with
the #any? test method on #nonzero? (data.each_byte.any?(&:nonzero?)).

This commit tests the behaviour, but is probably not compatible with Ruby 1.8
versions.

713 of 896 relevant lines covered (79.58%)

37.98 hits per line

Source Files on job 45.10 (ruby-head, Gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 45
  • Travis Job 45.10
  • 14a84f77 on github
  • Next Job for ruby-head, Gemfile on test-changes-and-more-bug-fixes (#47.10)
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