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

ICRAR / libprofit / 282 / 6
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: master
Ran 19 Oct 2018 05:14AM UTC
Files 47
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

19 Oct 2018 05:02AM UTC coverage: 88.387%. Remained the same
COMPILER=g++-6 CXXFLAGS="-coverage" LDFLAGS="-coverage"

push

travis-ci

rtobar
Fixed underlying type for enumeration

We previously had no explicit underlying type for our enumeration, and
therefore its range was defined by "the smallest bit field large enough
to hold all enumerators"; in this case, a 2-bit field. This therefore
didn't allow us to reliably cast some integer values that were outside
the range established by the enumerator list into the enumeration type
because the result was unspecified (and UB since C++17 actually). This
happened, for example, when trying to cast 5 into effort_t. gcc and
clang happily did it, but MSVC apparently chose to bomb out.

Having a fixed underlying type for the enumeration should allow this
type of casts work, and finally let us test reliably the bit of code
that we wanted to test.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

1545 of 1748 relevant lines covered (88.39%)

2326538.13 hits per line

Source Files on job 282.6 (COMPILER=g++-6 CXXFLAGS="-coverage" LDFLAGS="-coverage")
  • Tree
  • List 0
  • Changed 13
  • Source Changed 1
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 267
  • Travis Job 282.6
  • 3390de93 on github
  • Prev Job for COMPILER=g++-6 CXXFLAGS="-coverage" LDFLAGS="-coverage" on devel (#281.6)
  • Next Job for COMPILER=g++-6 CXXFLAGS="-coverage" LDFLAGS="-coverage" on devel (#283.6)
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