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

klyngbaek / stream-chunker / 30
100%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2016 06:30PM 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
30

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

96.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30.1 20 Apr 2016 06:31PM UTC 0
100.0
Travis Job 30.1
2 30.2 20 Apr 2016 06:30PM UTC 0
100.0
Travis Job 30.2
3 30.3 20 Apr 2016 06:30PM UTC 0
100.0
Travis Job 30.3
4 30.4 20 Apr 2016 06:30PM UTC 0
100.0
Travis Job 30.4
5 30.5 20 Apr 2016 06:30PM UTC 0
100.0
Travis Job 30.5
6 30.6 20 Apr 2016 06:32PM UTC 0
100.0
Travis Job 30.6
7 30.7 20 Apr 2016 06:31PM UTC 0
100.0
Travis Job 30.7
Source Files on build 30
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #30
  • Pull Request #1
  • PR Base - master (#29)
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