forked from forgejo/forgejo
Use testing benchmark interface (#1993)
This commit is contained in:
parent
d7570895cc
commit
6233e88f7f
2 changed files with 9 additions and 9 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue