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

ICRAR / libprofit / 282
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: master
Ran 19 Oct 2018 05:14AM UTC
Jobs 1
Files 47
Run time 3s
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
282

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

Jobs
ID Job ID Ran Files Coverage
6 282.6 (COMPILER=g++-6 CXXFLAGS="-coverage" LDFLAGS="-coverage") 19 Oct 2018 05:14AM UTC 0
88.39
Travis Job 282.6
Source Files on build 282
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #282
  • 3390de93 on github
  • Prev Build on devel (#281)
  • Next Build on devel (#283)
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