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

More tests #297

Merged
merged 6 commits into from
Feb 7, 2024
Merged

More tests #297

merged 6 commits into from
Feb 7, 2024

Conversation

auerswal
Copy link
Collaborator

@auerswal auerswal commented Feb 6, 2024

This pull request is based on looking at the coverage report, and adding tests that should exercise more code paths. This should increase code coverage by tests.

This also contains pinging a local IPv6 multicast address. I do not know if this works with the GitHub CI. It does work on my GNU/Linux system at home, and IPv6 requires multicast support, so it should work.

If not all tests work with the GitHub CI, I'll close the pull request and look into the problems.

* -f with non-existing file
* -f with input file containing comment and empty line
* -g with non-numeric address in "CIDR" format
* -g with one non-numeric address in start resp. end position
* -g with one IPv6 address in start resp. end position
Any Echo Response packet uses a different source address than
used for the target, because it is not allowed to use a multicast
address as source.  This results in extra output in a specific
format on standard error.

This should work, because IPv6 requires multicast support, and
every IPv6 node is supposed to join the "all nodes" multicast
group, including the node the test runs on.  It at least works
on my Ubuntu 20.04 LTS system.
@coveralls
Copy link

Coverage Status

coverage: 84.35% (+1.7%) from 82.67%
when pulling 13be25e on auerswal:more_tests
into 290d944 on schweikert:develop.

@schweikert
Copy link
Owner

That's great, thank you!

@schweikert schweikert merged commit d312a27 into schweikert:develop Feb 7, 2024
9 checks passed
@auerswal auerswal deleted the more_tests branch February 7, 2024 08:14
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