Skip to content

Commit

Permalink
hcl2template/common_test.go: make testParse a helper (hashicorp#8495)
Browse files Browse the repository at this point in the history
so that when an error happens we see the real calling function
  • Loading branch information
azr authored Dec 17, 2019
1 parent bc49234 commit ee2d74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hcl2template/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ee2d74c

Please sign in to comment.