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

halostatue / minitar / 45
80%
master: 82%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 05 Nov 2016 03:48AM UTC
Jobs 5
Files 13
Run time 1min
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
45

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%)

189.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45.1 (2.3.1, Gemfile) 05 Nov 2016 03:48AM UTC 0
79.64
Travis Job 45.1
2 45.2 (2.2.3, Gemfile) 05 Nov 2016 03:48AM UTC 0
79.64
Travis Job 45.2
3 45.3 (2.1.6, Gemfile) 05 Nov 2016 03:49AM UTC 0
79.64
Travis Job 45.3
4 45.4 (2.0.0, Gemfile) 05 Nov 2016 03:48AM UTC 0
79.64
Travis Job 45.4
10 45.10 (ruby-head, Gemfile) 05 Nov 2016 03:50AM UTC 0
79.58
Travis Job 45.10
Source Files on build 45
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #45
  • 14a84f77 on github
  • Next Build on test-changes-and-more-bug-fixes (#47)
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