htmlToText and extractImageURLs are thin wrappers around htmlutil. Full tests are in internal/htmlutil/htmlutil_test.go.
(t *testing.T)
| 8 | // Full tests are in internal/htmlutil/htmlutil_test.go. |
| 9 | |
| 10 | func 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 | |
| 17 | func TestExtractImageURLsDelegates(t *testing.T) { |
| 18 | urls := extractImageURLs(`<img src="test.png">`) |
nothing calls this directly
no test coverage detected