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

Function TestHtmlToTextDelegates

internal/tui/html_test.go:10–15  ·  view source on GitHub ↗

htmlToText and extractImageURLs are thin wrappers around htmlutil. Full tests are in internal/htmlutil/htmlutil_test.go.

(t *testing.T)

Source from the content-addressed store, hash-verified

8// Full tests are in internal/htmlutil/htmlutil_test.go.
9
10func TestHtmlToTextDelegates(t *testing.T) {
11 got := htmlToText("<p>hello</p>")
12 if got != "hello" {
13 t.Errorf("htmlToText = %q, want %q", got, "hello")
14 }
15}
16
17func TestExtractImageURLsDelegates(t *testing.T) {
18 urls := extractImageURLs(`<img src="test.png">`)

Callers

nothing calls this directly

Calls 1

htmlToTextFunction · 0.85

Tested by

no test coverage detected