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

Function TestToTextParagraphs

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

Source from the content-addressed store, hash-verified

13}
14
15func TestToTextParagraphs(t *testing.T) {
16 got := ToText("<p>First</p><p>Second</p>")
17 if !strings.Contains(got, "First") || !strings.Contains(got, "Second") {
18 t.Errorf("ToText paragraphs = %q, should contain First and Second", got)
19 }
20}
21
22func TestToTextBr(t *testing.T) {
23 got := ToText("line1<br>line2")

Callers

nothing calls this directly

Calls 1

ToTextFunction · 0.85

Tested by

no test coverage detected