Skip to content

opts: ValidateIPAddress: improve error, godoc, and tests#4657

Merged
thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah:improve_ValidateIPAddress
Nov 13, 2023
Merged

opts: ValidateIPAddress: improve error, godoc, and tests#4657
thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah:improve_ValidateIPAddress

Conversation

@thaJeztah
Copy link
Member


  • document accepted values
  • add test-coverage for the function's behavior (including whitespace handling), and use sub-tests.
  • improve error-message to use uppercase for "IP", and to use a common prefix.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Nov 11, 2023
- document accepted values
- add test-coverage for the function's behavior (including whitespace handling),
  and use sub-tests.
- improve error-message to use uppercase for "IP", and to use a common prefix.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the improve_ValidateIPAddress branch from 7c48512 to b0ee27d Compare November 11, 2023 13:50
@codecov-commenter
Copy link

Codecov Report

Merging #4657 (b0ee27d) into master (79c5d4a) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4657      +/-   ##
==========================================
- Coverage   59.74%   59.74%   -0.01%     
==========================================
  Files         288      288              
  Lines       24849    24848       -1     
==========================================
- Hits        14846    14845       -1     
  Misses       9117     9117              
  Partials      886      886              

@thaJeztah thaJeztah merged commit f19d27e into docker:master Nov 13, 2023
@thaJeztah thaJeztah deleted the improve_ValidateIPAddress branch November 13, 2023 11:28
@thaJeztah thaJeztah added this to the 25.0.0 milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants