File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ import (
18
18
19
19
// TestDecompressCase is a single test case for testing decompressors
20
20
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)
27
27
}
28
28
29
29
// TestDecompressor is a helper function for testing generic decompressors.
30
30
func TestDecompressor (t testing.T , d Decompressor , cases []TestDecompressCase ) {
31
+ t .Helper ()
32
+
31
33
for _ , tc := range cases {
32
34
t .Logf ("Testing: %s" , tc .Input )
33
35
You can’t perform that action at this time.
0 commit comments