Skip to content

Commit 08c221b

Browse files
committed
Mark the decompress tester as a helper for helpful failures
1 parent 7ee49f6 commit 08c221b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

decompress_testing.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ import (
1818

1919
// TestDecompressCase is a single test case for testing decompressors
2020
type TestDecompressCase struct {
21-
Input string // Input is the complete path to the input file
22-
Dir bool // Dir is whether or not we're testing directory mode
23-
Err bool // Err is whether we expect an error or not
24-
DirList []string // DirList is the list of files for Dir mode
25-
FileMD5 string // FileMD5 is the expected MD5 for a single file
26-
Mtime *time.Time // Mtime is the optionally expected mtime for a single file (or all files if in Dir mode)
21+
Input string // Input is the complete path to the input file
22+
Dir bool // Dir is whether or not we're testing directory mode
23+
Err bool // Err is whether we expect an error or not
24+
DirList []string // DirList is the list of files for Dir mode
25+
FileMD5 string // FileMD5 is the expected MD5 for a single file
26+
Mtime *time.Time // Mtime is the optionally expected mtime for a single file (or all files if in Dir mode)
2727
}
2828

2929
// TestDecompressor is a helper function for testing generic decompressors.
3030
func TestDecompressor(t testing.T, d Decompressor, cases []TestDecompressCase) {
31+
t.Helper()
32+
3133
for _, tc := range cases {
3234
t.Logf("Testing: %s", tc.Input)
3335

0 commit comments

Comments
 (0)