MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestToTextBr

Function TestToTextBr

internal/htmlutil/htmlutil_test.go:22–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

20}
21
22func TestToTextBr(t *testing.T) {
23 got := ToText("line1<br>line2")
24 if !strings.Contains(got, "line1\nline2") {
25 t.Errorf("ToText br = %q, should contain newline between lines", got)
26 }
27}
28
29func TestToTextList(t *testing.T) {
30 got := ToText("<ul><li>one</li><li>two</li></ul>")

Callers

nothing calls this directly

Calls 1

ToTextFunction · 0.85

Tested by

no test coverage detected