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

c-ares / c-ares / 12519381743
92%

Build:
DEFAULT BRANCH: main
Ran 27 Dec 2024 06:28PM UTC
Jobs 1
Files 178
Run time 1min
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

27 Dec 2024 06:25PM UTC coverage: 91.431% (+0.1%) from 91.33%
12519381743

push

github

web-flow
Localhost resolution can fail if only one address family is in /etc/hosts (#947)

Resolution of 'localhost' is required to be resolved locally as per
RFC6761, and c-ares implements fallback cases if `/etc/hosts` does not
contain an entry for `localhost` as is common for Windows. However, if
`/etc/hosts` does have an address entry for one family (e.g. ipv4) but
not the other (e.g. ipv6), the fallback wasn't being called since an
entry was found.

We need to enhance the logic to always fallback if an address family is
missing after reading `/etc/hosts`. We will also add specific test cases
for this scenario to ensure it doesn't regress in the future.

Fixes #946 
Signed-off-by: Brad House (@bradh352)

211 of 214 new or added lines in 10 files covered. (98.6%)

3 existing lines in 2 files now uncovered.

22376 of 24473 relevant lines covered (91.43%)

11937.01 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.31
1.22% src/lib/ares_addrinfo2hostent.c
2
96.88
-3.13% src/lib/ares_addrinfo_localhost.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.56
-0.1% src/lib/record/ares_dns_record.c
2
92.5
-2.5% src/lib/ares_metrics.c
Jobs
ID Job ID Ran Files Coverage
1 12519381743.1 27 Dec 2024 06:28PM UTC 939
59.97
GitHub Action Run
Source Files on build 12519381743
  • Tree
  • List 178
  • Changed 132
  • Source Changed 0
  • Coverage Changed 66
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 11a36c30 on github
  • Prev Build on main (#12341009114)
  • Next Build on main (#12521447141)
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

© 2025 Coveralls, Inc