PR adds []byte and json.RawMessage as acceptable string types to function comments and error messages. They come from the implementation of toString.
Notes
I noticed that toString is also used in matchers other than the ones updated in this PR, but I feel it's a bit weird to mention json.RawMessage in other matchers like an YAML matcher, so I decided to only update string-related matchers in this PR.
Summary
PR adds
[]byte
andjson.RawMessage
as acceptable string types to function comments and error messages. They come from the implementation oftoString
.Notes
I noticed that
toString
is also used in matchers other than the ones updated in this PR, but I feel it's a bit weird to mentionjson.RawMessage
in other matchers like an YAML matcher, so I decided to only update string-related matchers in this PR.