0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-28 13:34:30 +02:00

fast-path

This commit is contained in:
wxiaoguang 2026-05-28 14:31:39 +08:00
parent d11637c4b1
commit a2dc785d23

View File

@ -53,6 +53,9 @@ func AssertHTMLElement[T int | bool](t testing.TB, doc *HTMLDoc, selector string
func assertHTMLEq(t testing.TB, expected, actual string) {
t.Helper()
if expected == actual {
return
}
exp, err := html.Parse(strings.NewReader(expected))
if !assert.NoError(t, err) {
return