Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional tests #292

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Conversation

auerswal
Copy link
Collaborator

@auerswal auerswal commented Jan 8, 2024

Commits one through four add tests for existing functionality that I added in my (now closed) pull requests for new functionality. Commit five adds two tests for examples given in the man page.

* wrong number or kind of arguments fails and prints usage;
* an empty range silently pings nothing and fping returns 1;
* a too large range fails with an error message;
* a zero CIDR prefix length fails with an error message.
The statistics printed every SECS seconds show the results
since the the last report, not since the beginning.  Also,
every report starts with a timestamp.
The -o option adds outage duration to the periodic reports.
Each report shows the outage since the last report, not since
the beginning.
The man page gives two examples combining -C and -q, but
these combinations are not yet tested.  Add tests to help
ensure the documented examples continue to work.
@coveralls
Copy link

Coverage Status

coverage: 82.493% (+0.9%) from 81.581%
when pulling 035ed2b on auerswal:additional_tests
into a3f4c57 on schweikert:develop.

@schweikert
Copy link
Owner

Thank you!

@schweikert schweikert merged commit 2a609b8 into schweikert:develop Jan 8, 2024
9 checks passed
@auerswal auerswal deleted the additional_tests branch January 8, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants