~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/archive/zip/reader_test.go

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                },
65
65
        },
66
66
        {
 
67
                Name:    "test-trailing-junk.zip",
 
68
                Comment: "This is a zipfile comment.",
 
69
                File: []ZipTestFile{
 
70
                        {
 
71
                                Name:    "test.txt",
 
72
                                Content: []byte("This is a test text file.\n"),
 
73
                                Mtime:   "09-05-10 12:12:02",
 
74
                                Mode:    0644,
 
75
                        },
 
76
                        {
 
77
                                Name:  "gophercolor16x16.png",
 
78
                                File:  "gophercolor16x16.png",
 
79
                                Mtime: "09-05-10 15:52:58",
 
80
                                Mode:  0644,
 
81
                        },
 
82
                },
 
83
        },
 
84
        {
67
85
                Name:   "r.zip",
68
86
                Source: returnRecursiveZip,
69
87
                File: []ZipTestFile{
206
224
                        },
207
225
                },
208
226
        },
 
227
        {
 
228
                Name: "zip64.zip",
 
229
                File: []ZipTestFile{
 
230
                        {
 
231
                                Name:    "README",
 
232
                                Content: []byte("This small file is in ZIP64 format.\n"),
 
233
                                Mtime:   "08-10-12 14:33:32",
 
234
                                Mode:    0644,
 
235
                        },
 
236
                },
 
237
        },
209
238
}
210
239
 
211
240
var crossPlatform = []ZipTestFile{
251
280
                }
252
281
        }
253
282
        if err != zt.Error {
254
 
                t.Errorf("error=%v, want %v", err, zt.Error)
 
283
                t.Errorf("%s: error=%v, want %v", zt.Name, err, zt.Error)
255
284
                return
256
285
        }
257
286