镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

test: add TestInvalidValidationError and fix doc typos in errors.go - #1615

Open
aoright wants to merge 1 commit into
go-playground:masterfrom
aoright:test/add-invalid-validation-error-test
Open

aoright wants to merge 1 commit into
go-playground:masterfrom
aoright:test/add-invalid-validation-error-test

Conversation

@aoright

@aoright aoright commented Aug 20, 2026

Copy link
Copy Markdown

Summary

  • In validator_test.go, add unit test TestInvalidValidationError verifying InvalidValidationError.Error() output formats (for nil type and typed nil) and ensuring v.Struct(nil) yields *InvalidValidationError.
  • Fix minor doc comment typos in errors.go (missing backtick around `StructPartial` and it's name -> its name).

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
@aoright
aoright requested a review from a team as a code owner August 20, 2026 05:39
@nodivbyzero

Copy link
Copy Markdown
Contributor

Thank you for your contribution!
Please rebase your PR and I'll merge your changes once that's done.

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.

2 participants