summaryrefslogtreecommitdiffstats
path: root/integrations/html_helper.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-06-17 17:01:03 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-17 23:01:03 +0800
commit6233e88f7f89b15d91f8047ccc4b2ad300170ec7 (patch)
treeda1501c6b79e1152ab735dd4905db8e044160882 /integrations/html_helper.go
parentd7570895cce7adbac8267e6550c0e66651715607 (diff)
downloadgitea-6233e88f7f89b15d91f8047ccc4b2ad300170ec7.tar.gz
gitea-6233e88f7f89b15d91f8047ccc4b2ad300170ec7.zip
Use testing benchmark interface (#1993)
Diffstat (limited to 'integrations/html_helper.go')
-rw-r--r--integrations/html_helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/html_helper.go b/integrations/html_helper.go
index 3bddd2930d..6339b2da94 100644
--- a/integrations/html_helper.go
+++ b/integrations/html_helper.go
@@ -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}