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

Function TestUntrustedBytes_roundTrip

pkg/iostreams/untrusted_test.go:44–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestUntrustedBytes_roundTrip(t *testing.T) {
45 u := NewUntrustedBytes([]byte("plain text"))
46 assert.Equal(t, "plain text", u.String())
47}
48
49func TestStripControl_dropsC0KeepsWhitespace(t *testing.T) {
50 assert.Equal(t, "abc\td\ne", stripControl("a\x1bb\x07c\td\ne"))

Callers

nothing calls this directly

Calls 3

NewUntrustedBytesFunction · 0.85
EqualMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected