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

klyngbaek / stream-chunker / 34 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 27 Apr 2016 08:31PM UTC
Files 1
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

27 Apr 2016 08:30PM UTC coverage: 100.0%. Remained the same
34.1

Pull #2

travis-ci

jviotti
Prevent unnecessary null block if image is already aligned

If the user makes use of the `align` option but the image is already
aligned, the module will append a whole null chunk independently on
whether there is remaining data to flush or not.

This PR checks the remaining data buffer length, and only runs the
alignment routine if there is really something to align.

In the test case added below, the result was `1234\0\0\0\0`. `1234` is
already aligned in 4 bytes chunks, but the code adds 4 null bytes at the
end anyway.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
Pull Request #2: Prevent unnecessary null block if image is already aligned

27 of 27 relevant lines covered (100.0%)

15.19 hits per line

Source Files on job 34.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 34
  • Travis Job 34.1
  • 377f93dc on github
  • Prev Job for on master (#33.1)
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