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

dedis / onet / 776
66%

Build:
DEFAULT BRANCH: master
Ran 07 Aug 2017 07:58AM UTC
Jobs 1
Files 49
Run time 2s
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
776

push

travis-ci

nikkolasg
Added validHostname as isolated function. (#179)

* Added validHostname as isolated function.
Added few (temporary) tests
It has to be integrated with the rest

* Formatting issues solved

* Modified the NetworkAddress() function, so that it always returns an IP address (even if the Address is defined with a hostname).
validHostname function -> partially integrated in the Valid() function. A refactor of the Valid() function might be needed (for instance: the check ip == "localhost" is already handled by validHostname

* TLD do not allow hyphens/numbers (but a minor change might be needed in order to support IDNs)
Small change in the Valid() function
Added few tests

* TLD do not allow hyphens/numbers (but a minor change might be needed in order to support IDNs)
Small change in the Valid() function
Added few tests

* Corrected formatting and linting.

* Removed useless comment

* Added:
 IsHostname()
 Resolve() -> returned the IP address associated to the hostname
 NetworkAddressResolved() -> returns the network address, but with the hostname resolved
Still need to handle IPv6 -> does it make sense for the Host() method to return the host part inside brackets? The "net" library handles brackets automatically when splitting and joining addresses/ports. Also, LookupHost does not return the IPv6 address inside brackets. Finally, ParseIP requires the IPv6 address without brackets.
Valid() function -> is it really ok that only the structure of the address is checked?

4484 of 7045 relevant lines covered (63.65%)

75.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 776.1 07 Aug 2017 07:58AM UTC 0
63.65
Travis Job 776.1
Source Files on build 776
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #776
  • 5e874af8 on github
  • Prev Build on master (#750)
  • Next Build on master (#781)
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