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 unit tests and small changes for port range functions #325

Merged
merged 4 commits into from
Apr 21, 2020

Conversation

ArnoStiefvater
Copy link
Member

Add unit tests for port range functions validate_port_range(), port_range_ranges() and port_in_port_ranges().
Allow white-space after port type specifier for consistency (it is allowed everywhere else too).
Log warning when invalid port range is used in port_range_ranges() and add assert.

Checklist:

Unit tets for port list.
Allow whitespace after 'T' or 'U'. Previously ':' had to follow
immidiately after.
Unit tests for port_in_port_ranges().
Make valid port range string a requirement for this function.
Allow whitespace after 'T' or 'U'. Previously ':' had to follow
immidiately after.
base/networking_tests.c Outdated Show resolved Hide resolved
base/networking.c Outdated Show resolved Hide resolved
base/networking_tests.c Outdated Show resolved Hide resolved
base/networking_tests.c Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Add unit tests for port_in_port_ranges().
Add some more standard port lists for validate_port_range() too.
Add changelog entry.
@mattmundell mattmundell merged commit 067e49d into greenbone:master Apr 21, 2020
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.

None yet

2 participants