containsText checks if rendered output contains a substring (ignoring ANSI codes).
(rendered, substr string)
| 960 | |
| 961 | // containsText checks if rendered output contains a substring (ignoring ANSI codes). |
| 962 | func containsText(rendered, substr string) bool { |
| 963 | // Strip ANSI escape sequences for comparison |
| 964 | return containsSubstring(stripAnsi(rendered), substr) |
| 965 | } |
| 966 | |
| 967 | // containsSubstring is a simple substring check. |
| 968 | func containsSubstring(s, substr string) bool { |
no test coverage detected