aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/html_helper.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-07-29 06:15:18 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-29 12:15:18 +0800
commitd02566a8ead1ef99ba354dbbbb45dcccaec54551 (patch)
treeeca615a7b7a2bba9a762e6371a1554e05c188a17 /integrations/html_helper.go
parent0c927b1606a0c38c1016b1544b2f33635504e735 (diff)
downloadgitea-d02566a8ead1ef99ba354dbbbb45dcccaec54551.tar.gz
gitea-d02566a8ead1ef99ba354dbbbb45dcccaec54551.zip
integration tests: Use t.Helper() (#7654)
Diffstat (limited to 'integrations/html_helper.go')
-rw-r--r--integrations/html_helper.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/html_helper.go b/integrations/html_helper.go
index 139261d694..823ed44851 100644
--- a/integrations/html_helper.go
+++ b/integrations/html_helper.go
@@ -19,6 +19,7 @@ type HTMLDoc struct {
// NewHTMLParser parse html file
func NewHTMLParser(t testing.TB, body *bytes.Buffer) *HTMLDoc {
+ t.Helper()
doc, err := goquery.NewDocumentFromReader(body)
assert.NoError(t, err)
return &HTMLDoc{doc: doc}