26type ZipTest struct {
27 Name string
28▶ Source func() (r io.ReaderAt, size int64) // if non-nil, used instead of testdata/<Name> file
29 Comment string
30 File []ZipTestFile
· · ·
583}
584
585▶func TestReader(t *testing.T) {
586 for _, zt := range tests {
587 t.Run(zt.Name, func(t *testing.T) {
· · ·
587▶ t.Run(zt.Name, func(t *testing.T) {
588 readTestZip(t, zt)
589 })
· · ·
591}
592
593▶func readTestZip(t *testing.T, zt ZipTest) {
594 var z *Reader
595 var err error
· · ·
663 for i := 0; i < 5; i++ {
664 for j, ft := range zt.File {
665▶ go func(j int, ft ZipTestFile) {
666 readTestFile(t, zt, ft, z.File[j], raw)
667 done <- true
+ 47 more matches in this file