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

klyngbaek / stream-chunker / 31 / 7
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2016 01:34PM 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

21 Apr 2016 01:30PM UTC coverage: 100.0%. Remained the same
31.7

Pull #1

travis-ci

jviotti
Implement an option to align final incomplete data chunk

Writing unaligned data causes `EINVAL` (from `write(2)`):

> EINVAL
>  fd is attached to an object which is unsuitable for writing; or the
>  file was opened with the O_DIRECT flag, and either the address
>  specified in buf, the value specified in count, or the current file
>  offset is not suitably aligned.

This pull request implements an opt-in option (to preserve backwards
compatibility) called `align`, that when used in conjunction to `flush`,
will cause the incomplete data chunk to be padded with null bytes to
match the passed chunk size.

For example, in the added test, the chunk size is 4 bytes, and we push
three chunks:

- `12`: 2 bytes
- `34`: 2 bytes
- `5`: 1 byte

The final incomplete data chunk will become `5\0\0\0` (to match the
specified 4 bytes) if the `align` option was enabled.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
Pull Request #1: Implement an option to align final incomplete data chunk

27 of 27 relevant lines covered (100.0%)

13.59 hits per line

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