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

[test] Add tests for hostname.go in common package #174

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

art-tapin
Copy link
Contributor

@art-tapin art-tapin commented Apr 27, 2023

This pull request adds unit tests for the IsWildCarded, SubsetsOf and String function in hostname.go of the common package

Changes made:

  • Added unit tests for IsWildCarded function
  • Added unit tests for String function (these are not strictly necessary, added only to improve the overall test coverage percentage)
  • Added six additional test cases for NameSubsetsOf function

This pull request partly closes issue #167. The work is still in progress and more changes will be made in subsequent pull requests.

- wildcards with different TLDs
- wildcards at different levels in domain hierarchy
- wildcards with subdomains
- empty hostnames
- one empty hostname
- multiple wildcards
@art-tapin art-tapin marked this pull request as ready for review April 27, 2023 12:59
@art-tapin art-tapin requested a review from a team as a code owner April 27, 2023 12:59
@art-tapin art-tapin merged commit 6c37169 into main Apr 28, 2023
@art-tapin art-tapin deleted the issue167/unit-tests-for-hostname branch April 28, 2023 10:10
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