diff --git a/datadriven.go b/datadriven.go index d45cb3f..9849b84 100644 --- a/datadriven.go +++ b/datadriven.go @@ -188,6 +188,7 @@ func runDirectiveOrSubTest( mandatorySubTestPrefix string, f func(*testing.T, *TestData) string, ) { + t.Helper() if subTestName, ok := isSubTestStart(t, r, mandatorySubTestPrefix); ok { runSubTest(subTestName, t, r, f) } else {