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

msimerson / Haraka / 1152
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
Jobs 3
Files 1
Run time 8s
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
1152

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%)

1.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1152.1 23 Feb 2015 09:34PM UTC 0
37.7
Travis Job 1152.1
2 1152.2 23 Feb 2015 09:34PM UTC 0
Travis Job 1152.2
4 1152.4 23 Feb 2015 09:34PM UTC 0
37.7
Travis Job 1152.4
Source Files on build 1152
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1152
  • 227ec443 on github
  • Prev Build on net_utils (#1151)
  • Next Build on net_utils (#1155)
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