Lines Matching refs:File
25 File []ZipTestFile member
46 File string member
64 File: []ZipTestFile{
73 File: "gophercolor16x16.png",
82 File: []ZipTestFile{
91 File: "gophercolor16x16.png",
100 File: []ZipTestFile{
111 File: []ZipTestFile{
128 File: []ZipTestFile{
140 File: crossPlatform,
145 File: crossPlatform,
151 File: []ZipTestFile{
170 File: []ZipTestFile{
186 File: []ZipTestFile{
204 File: []ZipTestFile{
224 File: []ZipTestFile{
242 File: []ZipTestFile{
254 File: []ZipTestFile{
267 File: []ZipTestFile{
333 if zt.File == nil {
340 if len(z.File) != len(zt.File) {
341 t.Fatalf("%s: file count=%d, want %d", zt.Name, len(z.File), len(zt.File))
345 for i, ft := range zt.File {
346 readTestFile(t, zt, ft, z.File[i])
353 for j, ft := range zt.File {
355 readTestFile(t, zt, ft, z.File[j])
366 func readTestFile(t *testing.T, zt ZipTest, ft ZipTestFile, f *File) { argument
400 if ft.Content == nil && ft.File == "" && ft.Size > 0 {
425 } else if c, err = ioutil.ReadFile("testdata/" + ft.File); err != nil {
443 func testFileMode(t *testing.T, zipName string, f *File, want os.FileMode) { argument
716 f, err := r.File[0].Open()
742 var f File
771 for i, f := range z.File {
813 r, err := z.File[0].Open()