mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-06 18:24:39 +08:00
Use testing benchmark interface (#1993)
This commit is contained in:

committed by
Lunny Xiao

parent
d7570895cc
commit
6233e88f7f
@ -16,7 +16,7 @@ type HtmlDoc struct {
|
||||
doc *goquery.Document
|
||||
}
|
||||
|
||||
func NewHtmlParser(t *testing.T, content []byte) *HtmlDoc {
|
||||
func NewHtmlParser(t testing.TB, content []byte) *HtmlDoc {
|
||||
doc, err := goquery.NewDocumentFromReader(bytes.NewReader(content))
|
||||
assert.NoError(t, err)
|
||||
return &HtmlDoc{doc: doc}
|
||||
|
Reference in New Issue
Block a user