Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testFileMode (0.06 sec)

  1. src/archive/zip/writer_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    func testReadFile(t *testing.T, f *File, wt *WriteTest) {
    	if f.Name != wt.Name {
    		t.Fatalf("File name: got %q, want %q", f.Name, wt.Name)
    	}
    	testFileMode(t, f, wt.Mode)
    	rc, err := f.Open()
    	if err != nil {
    		t.Fatalf("opening %s: %v", f.Name, err)
    	}
    	b, err := io.ReadAll(rc)
    	if err != nil {
    		t.Fatalf("reading %s: %v", f.Name, err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	}
    	if !ft.ModTime.IsZero() && !equalTimeAndZone(f.ModTime(), ft.ModTime) {
    		t.Errorf("%s: ModTime=%s, want %s", f.Name, f.ModTime(), ft.ModTime)
    	}
    
    	testFileMode(t, f, ft.Mode)
    
    	size := uint64(f.UncompressedSize)
    	if size == uint32max {
    		size = f.UncompressedSize64
    	} else if size != f.UncompressedSize64 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
Back to top