MCPcopy Create free account
hub / github.com/cli/cli / TestContainsEscapeSequence

Function TestContainsEscapeSequence

pkg/iostreams/content_test.go:48–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ContainsEscapeSequenceFunction · 0.85

Tested by

no test coverage detected