Skip to content

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

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

opts: ValidateIPAddress: improve error, godoc, and tests#46801
thaJeztah merged 1 commit intomoby: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.

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

- 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 added area/cli Client status/2-code-review area/daemon Core Engine kind/refactor PR's that refactor, or clean-up code labels Nov 11, 2023
@thaJeztah thaJeztah added this to the 25.0.0 milestone Nov 11, 2023
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 34e923e into moby:master Nov 13, 2023
@thaJeztah thaJeztah deleted the improve_ValidateIPAddress branch November 13, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli Client area/daemon Core Engine 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