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

Function TestToTextEmpty

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

Source from the content-addressed store, hash-verified

51}
52
53func TestToTextEmpty(t *testing.T) {
54 got := ToText("")
55 if got != "" {
56 t.Errorf("ToText empty = %q, want empty", got)
57 }
58}
59
60func TestToTextImgTag(t *testing.T) {
61 got := ToText(`<p>Before</p><img src="test.png" alt="photo"><p>After</p>`)

Callers

nothing calls this directly

Calls 1

ToTextFunction · 0.85

Tested by

no test coverage detected