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

klyngbaek / stream-chunker / 34
100%

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

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

107.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34.1 27 Apr 2016 08:31PM UTC 0
100.0
Travis Job 34.1
2 34.2 27 Apr 2016 08:31PM UTC 0
100.0
Travis Job 34.2
3 34.3 27 Apr 2016 08:31PM UTC 0
100.0
Travis Job 34.3
4 34.4 27 Apr 2016 08:31PM UTC 0
100.0
Travis Job 34.4
5 34.5 27 Apr 2016 08:31PM UTC 0
100.0
Travis Job 34.5
6 34.6 27 Apr 2016 08:32PM UTC 0
100.0
Travis Job 34.6
7 34.7 27 Apr 2016 08:32PM UTC 0
100.0
Travis Job 34.7
Source Files on build 34
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #34
  • Pull Request #2
  • PR Base - master (#33)
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