1
1
mirror of https://github.com/wader/fq.git synced 2024-12-25 14:23:18 +03:00
fq/format/gzip/testdata/compressed_size.fqtest
Mattias Wadman 29005c70bf interp,dump: Show address bar for root, nested roots and on format change
Also increase indent for nested roots a bit.

Makes it a bit easier to read i think.
2022-08-09 18:09:41 +02:00

16 lines
1.3 KiB
Plaintext

# this tests compressed size (TryFieldReaderRangeFormat)
$ fq -d gzip 'tobits | chunk(3) | gzip' test.gz
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: (gzip)
0x000|1f 8b |.. | identification: raw bits (valid)
0x000| 08 | . | compression_method: "deflate" (8)
0x000| 00 | . | flags{}:
0x000| 41 02 ea 5f | A.._ | mtime: 1609171521 (2020-12-28T16:05:21Z)
0x000| 00 | . | extra_flags: 0
0x000| 03 | . | os: "unix" (3)
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|74 65 73 74 0a| |test.| | uncompressed: raw bits
0x000| 2b 49 2d 2e e1 02| +I-...| compressed: raw bits
0x010|00 |. |
0x010| c6 35 b9 3b | .5.; | crc32: 0x3bb935c6 (valid)
0x010| 05 00 00 00| | ....| | isize: 5