Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Test coverage #40
Here are some additional tests to improve the coverage. Please be aware that I do not have access to any MSWin32 systems so have not been able to test the changes on that platform.
These additional tests have shown up one thing which you might consider a bug: If the user does not supply a port to check_port() or to wait_port() (which the POD describes as being mandatory) the code does not test this but passes the undef along to IO::Socket::IP->new() which then throws the exception "Expected 'PeerService'". A couple of my new tests look for this error but you might consider it to be better if check_port() and wait_port() would check that a port has been supplied and carp something appropriate otherwise.
I hope you find this PR useful. The work has been done as part of the CPAN PR Challenge.