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

msimerson / Haraka / 1152 / 1
38%
master: 17%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/redis-4.6.6
DEFAULT BRANCH: master
Ran 23 Feb 2015 09:34PM UTC
Files 1
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

23 Feb 2015 09:30PM UTC coverage: 37.705%. Remained the same
1152.1

push

travis-ci

msimerson
rename net_utils.is_rfc1918 -> is_private_ip

RFC 1918 only specifies the 3 IPv4 private IP blocks. This function has evolved to also include loopback IPs and is likely to continue evolving to add other "Special IP allocations" (RFC 6890) such as the link local netblocks. This name encompasses all those uses.

* adds IPv6 link local to is_private_ip
    * fixes #850
* net_utils: wrap long lines (lint)
* net_utils, added is_local_ipv4, is_private_ipv4, & is_local_ipv6.
    * updated is_private_ip to use them
* adds additional test coverage
* considerably easier to maintain than one regex for ipv4 and one for ipv6
* no significant performance impact (0.05 second difference on 2 million iterations)
* side note: using ?: in /regex/.test(str) seems to make no performance different whatsoever (less than rounding error in testing).
* added docs for net_utils.is_local|private_ipv*

23 of 61 relevant lines covered (37.7%)

0.38 hits per line

Source Files on job 1152.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1152
  • Travis Job 1152.1
  • 227ec443 on github
  • Prev Job for on net_utils (#1151.1)
  • Next Job for on net_utils (#1155.1)
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