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

Function TestToTextPlain

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

Source from the content-addressed store, hash-verified

6)
7
8func TestToTextPlain(t *testing.T) {
9 got := ToText("hello world")
10 if got != "hello world" {
11 t.Errorf("ToText plain = %q, want %q", got, "hello world")
12 }
13}
14
15func TestToTextParagraphs(t *testing.T) {
16 got := ToText("<p>First</p><p>Second</p>")

Callers

nothing calls this directly

Calls 1

ToTextFunction · 0.85

Tested by

no test coverage detected