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

c-ares / c-ares / #90
92%

Build:
DEFAULT BRANCH: main
Ran 10 Oct 2023 04:26PM UTC
Jobs 1
Files 134
Run time 5s
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

10 Oct 2023 04:14PM UTC coverage: 86.19% (-0.8%) from 87.028%
#90

push

travis-ci

web-flow
ares_status_t enum for status codes (#567)

The list of possible error codes in c-ares was a #define list. This not only doesn't provide for any sort of type safety but it also lacks clarification on what a function may return or what it takes, as an int could be an ares status, a boolean, or possibly even a length in the current code.

We are not changing any public APIs as though the C standard states the underlying size and type of an enum is int, there are compiler attributes to override this as well as compiler flags like -fshort-enums. GCC in particular is known to expand an enum's width based on the data values (e.g., it can emit a 64bit integer enum).

All internal usages should be changed by this PR, but of course, there may be some I missed.

Fix By: Brad House (@bradh352)

126 of 126 new or added lines in 19 files covered. (100.0%)

5068 of 5880 relevant lines covered (86.19%)

11054.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #90.1 10 Oct 2023 04:26PM UTC 0
86.19
Source Files on build #90
Detailed source file information is not available for this build.
  • Back to Repo
  • 973023b4 on github
  • Prev Build on main
  • Next Build on main
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