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

JoakimSoderberg / cargo / 143 / 2
90%
master: 92%

Build:
Build:
LAST BUILD BRANCH: ansi_win32_again
DEFAULT BRANCH: master
Ran 17 Feb 2015 10:56PM UTC
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

17 Feb 2015 10:46PM UTC coverage: 88.798% (+0.1%) from 88.661%
CARGO_METHOD=coveralls CMAKE_ARGS="-DCARGO_WITH_MEMCHECK=OFF -DCARGO_COVERALLS=ON -DCARGO_TEST=ON -DCMAKE_BUILD_TYPE=Debug"

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

Source Files on job 143.2 (CARGO_METHOD=coveralls CMAKE_ARGS="-DCARGO_WITH_MEMCHECK=OFF -DCARGO_COVERALLS=ON -DCARGO_TEST=ON -DCMAKE_BUILD_TYPE=Debug")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 143
  • Travis Job 143.2
  • 67b0c56e on github
  • Prev Job for CARGO_METHOD=coveralls CMAKE_ARGS="-DCARGO_WITH_MEMCHECK=OFF -DCARGO_COVERALLS=ON -DCARGO_TEST=ON -DCMAKE_BUILD_TYPE=Debug" on variadic (#141.2)
  • Next Job for CARGO_METHOD=coveralls CMAKE_ARGS="-DCARGO_WITH_MEMCHECK=OFF -DCARGO_COVERALLS=ON -DCARGO_TEST=ON -DCMAKE_BUILD_TYPE=Debug" on variadic (#145.2)
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