strips some ANSI escape sequences that we do not want tests to be concerned with
(t string)
| 278 | |
| 279 | // strips some ANSI escape sequences that we do not want tests to be concerned with |
| 280 | func normalizeANSI(t string) string { |
| 281 | t = strings.ReplaceAll(t, "\x1b[?25h", "") // strip sequence that shows cursor |
| 282 | t = strings.ReplaceAll(t, "\x1b[?25l", "") // strip sequence that hides cursor |
| 283 | return t |
| 284 | } |
no outgoing calls
no test coverage detected