MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / TestFormatDebugTermHex

Function TestFormatDebugTermHex

cmd/wsh/cmd/wshcmd-debugterm_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestFormatDebugTermHex(t *testing.T) {
12 output := formatDebugTermHex([]byte("abc"))
13 if !strings.Contains(output, "61 62 63") {
14 t.Fatalf("unexpected hex output: %q", output)
15 }
16}
17
18func TestFormatDebugTermDecode(t *testing.T) {
19 data := []byte("abc\x1b[31mred\x1b[0m\x07\x1b]0;title\x07\x00")

Callers

nothing calls this directly

Calls 1

formatDebugTermHexFunction · 0.85

Tested by

no test coverage detected