Skip to content

Commit

Permalink
makes it so, if the value string out of limit, then include only `val…
Browse files Browse the repository at this point in the history
…ue type`
  • Loading branch information
illia-li committed Oct 21, 2024
1 parent d3bd0a5 commit 0f14a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tests/serialization/utils_str.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const printLimit = 100
func stringValue(in interface{}) string {
valStr := stringVal(in)
if len(valStr) > printLimit {
valStr = valStr[:printLimit]
return fmt.Sprintf("(%T)", in)
}
return fmt.Sprintf("(%T)(%s)", in, valStr)
}
Expand Down

0 comments on commit 0f14a7a

Please sign in to comment.