Skip to content

test(gomock): add panicking Stringer and generated mock struct tests in string_test.go - #313

Open
aoright wants to merge 1 commit into
uber-go:mainfrom
aoright:test/getstring-panicking-and-mock-struct
Open

test(gomock): add panicking Stringer and generated mock struct tests in string_test.go#313
aoright wants to merge 1 commit into
uber-go:mainfrom
aoright:test/getstring-panicking-and-mock-struct

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • In gomock/string_test.go, add test cases for getString covering panicking fmt.Stringer instances (to ensure panic recovery in safeString) and generated mock structs (with isgomock field value and pointer types).
  • Fix small doc comment typo in gomock/string.go ("is a a mock" -> "is a mock").

…in string_test.go

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
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