Skip to content

Avoid printf directives in assert messages#11

Open
HNO3Miracle wants to merge 1 commit into
zeebo:masterfrom
HNO3Miracle:avoid-printf-directives-in-assert-messages
Open

Avoid printf directives in assert messages#11
HNO3Miracle wants to merge 1 commit into
zeebo:masterfrom
HNO3Miracle:avoid-printf-directives-in-assert-messages

Conversation

@HNO3Miracle

Copy link
Copy Markdown

Summary:

  • Avoid %v and %+v directives in assertion message strings that are not intended as formats.
  • This keeps the tests compatible with current Go vet.

Testing:

  • go test ./...

Signed-off-by: HNO3Miracle <xiangao.or@isrc.iscas.ac.cn>
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.

1 participant