(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestContainsEscapeSequence(t *testing.T) { |
| 49 | assert.False(t, ContainsEscapeSequence([]byte("plain text"))) |
| 50 | assert.True(t, ContainsEscapeSequence([]byte("danger\x1b[31m"))) |
| 51 | } |
| 52 | |
| 53 | func TestCopyGuardedContent(t *testing.T) { |
| 54 | png := append([]byte("\x89PNG\r\n\x1a\n"), make([]byte, 16)...) |
nothing calls this directly
no test coverage detected