mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 12:07:20 +00: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