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

klyngbaek / stream-chunker / 31
100%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2016 01:32PM UTC
Jobs 7
Files 1
Run time 2min
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
31

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

98.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31.1 21 Apr 2016 01:34PM UTC 0
100.0
Travis Job 31.1
2 31.2 21 Apr 2016 01:32PM UTC 0
100.0
Travis Job 31.2
3 31.3 21 Apr 2016 01:32PM UTC 0
100.0
Travis Job 31.3
4 31.4 21 Apr 2016 01:32PM UTC 0
100.0
Travis Job 31.4
5 31.5 21 Apr 2016 01:32PM UTC 0
100.0
Travis Job 31.5
6 31.6 21 Apr 2016 01:34PM UTC 0
100.0
Travis Job 31.6
7 31.7 21 Apr 2016 01:34PM UTC 0
100.0
Travis Job 31.7
Source Files on build 31
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #31
  • 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