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

Function TestExtractImageURLsEmptySrc

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

Source from the content-addressed store, hash-verified

119 {name: "closed details", html: `<details><summary>Visible summary</summary><p>Closed content</p></details>`, want: "Visible summary"},
120 {name: "open details and dialog", html: `<details open><summary>Summary</summary><p>Details</p></details><dialog open>Dialog</dialog>`, want: "Summary Details Dialog"},
121 }
122 for _, tt := range tests {
123 t.Run(tt.name, func(t *testing.T) {
124 if got := strings.Join(strings.Fields(MessageSourceText(tt.html)), " "); got != tt.want {
125 t.Errorf("MessageSourceText = %q, want %q", got, tt.want)
126 }
127 })
128 }
129}

Callers

nothing calls this directly

Calls 1

ExtractImageURLsFunction · 0.85

Tested by

no test coverage detected