Indent the given text with a given indentation string.
(text, indent string)
| 124 | |
| 125 | // Indent the given text with a given indentation string. |
| 126 | func indentText(text, indent string) string { |
| 127 | return indent + strings.ReplaceAll(text, "\n", "\n"+indent) |
| 128 | } |
| 129 | |
| 130 | // Read "// ERROR:" prefixed messages from the given file. |
| 131 | func readErrorMessages(t *testing.T, file string) string { |