mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-21 05:28:00 +02:00
integration tests: Use t.Helper() (#7654)
This commit is contained in:

committed by
Lunny Xiao

parent
0c927b1606
commit
d02566a8ea
@ -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}
|
||||
|
Reference in New Issue
Block a user