hcl2template/common_test.go: make testParse a helper (#8495)

so that when an error happens we see the real calling function
This commit is contained in:
Adrien Delorme 2019-12-17 16:46:36 +01:00 committed by GitHub
parent bc49234930
commit ee2d74ce9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ type parseTest struct {
}
func testParse(t *testing.T, tests []parseTest) {
t.Helper()
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {