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

JoakimSoderberg / cargo / 143
90%
master: 92%

Build:
Build:
LAST BUILD BRANCH: ansi_win32_again
DEFAULT BRANCH: master
Ran 17 Feb 2015 10:56PM UTC
Jobs 1
Files 1
Run time 2s
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
143

push

travis-ci

JoakimSoderberg
bugfix: Make sure we always get a valid max width value.

Make sure we use the correct types, and assign a valid value in all code paths.

cargo_get_console_width returns an int, and returns -1 on error. So doing:

```
size_t console_width = cargo_get_console_width();
```

is not good, since on an error in cargo_get_console_width, the console_width will be parsed as the MAX value to fit in a `size_t`. So my check for `> 0` will always result in the true branch hitting.

650 of 732 relevant lines covered (88.8%)

52.51 hits per line

Jobs
ID Job ID Ran Files Coverage
2 143.2 (CARGO_METHOD=coveralls CMAKE_ARGS="-DCARGO_WITH_MEMCHECK=OFF -DCARGO_COVERALLS=ON -DCARGO_TEST=ON -DCMAKE_BUILD_TYPE=Debug") 17 Feb 2015 10:56PM UTC 0
88.8
Travis Job 143.2
Source Files on build 143
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #143
  • 67b0c56e on github
  • Prev Build on variadic (#141)
  • Next Build on variadic (#145)
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