Skip to content

Commit

Permalink
Refactor IsIPv*() tests
Browse files Browse the repository at this point in the history
Merge the IsIPv4String and IsIPv6String tests together and add more
cases.

Merge the IsIPv4 and IsIPv6 tests together and add more cases.

Merge all the CIDR tests together, both string and binary, since there
are no cases there that we care about testing that can't be expressed
as a string to be input to ParseCIDR().
  • Loading branch information
danwinship committed Nov 16, 2022
1 parent 12a2ade commit d001242
Showing 1 changed file with 261 additions and 264 deletions.
Loading

0 comments on commit d001242

Please sign in to comment.