- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestHeaderRoundTrip (0.17 sec)
-
src/archive/zip/zip_test.go
ModifiedTime: 1234, ModifiedDate: 5678, } testHeaderRoundTrip(fh, fh.UncompressedSize, uint64(fh.UncompressedSize), t) } func TestFileHeaderRoundTrip64(t *testing.T) { fh := &FileHeader{ Name: "foo.txt", UncompressedSize64: 9876543210, ModifiedTime: 1234, ModifiedDate: 5678, } testHeaderRoundTrip(fh, uint32max, fh.UncompressedSize64, t) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
src/archive/tar/tar_test.go
} if !bytes.Equal(rData, data) { t.Errorf("Data mismatch.\n got %q\nwant %q", rData, data) } } type headerRoundTripTest struct { h *Header fm fs.FileMode } func TestHeaderRoundTrip(t *testing.T) { vectors := []headerRoundTripTest{{ // regular file. h: &Header{ Name: "test.txt", Mode: 0644, Size: 12, ModTime: time.Unix(1360600916, 0),
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0)