integration tests: Use t.Helper() (#7654)
This commit is contained in:
parent
0c927b1606
commit
d02566a8ea
2 changed files with 18 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue