Skip to content

Commit 8cbe129

Browse files
committed
testutils.AddFile(): label as a helper function
1 parent 878581f commit 8cbe129

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/testutils/repoutils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ func CreateObject(
8686
}
8787

8888
func AddFile(t *testing.T, repoPath string, relativePath, contents string) {
89+
t.Helper()
90+
8991
dirPath := filepath.Dir(relativePath)
9092
if dirPath != "." {
9193
require.NoError(t, os.MkdirAll(filepath.Join(repoPath, dirPath), 0777), "creating subdir")

0 commit comments

Comments
 (0)