7 Commits

Author SHA1 Message Date
João M. Bezerra
44e0fcc985 Fixing tests without assert 2021-08-04 12:05:47 -03:00
João M. Bezerra
bb93e46535 Reworked compression
Now works with multiple formats, like
archive.zip.gz.lz.gz.gz2.xz

Now with minimum in-memory copying, compressing and decompressing (with
exception to .zip, due to the format limitations) is all done directly
into the final destination file.
2021-08-03 21:18:22 -03:00
João M. Bezerra
ac4948abf7 Decompression: multiple formats, no extra copying
Rewrote decompression to use chained decoders, creating a stream and
avoiding in-memory decompression, which caused redundant copying.

Now ouch supports any number of extensions as decompressing formats, not
only two.
2021-08-03 16:58:21 -03:00
João M. Bezerra
abc6f51582 Removing .*.tar and .*.zip from tests
Those formats won't be supporte by now, at least for compressing.

Archive formats are are only meant to be used as the first extension,
because archives are meant to be used with multiple files.
2021-08-02 15:46:29 -03:00
João M. Bezerra
57a3d231eb Turning oof subcrate into a module 2021-05-26 21:54:50 -03:00
João M. Bezerra
f4e1798cc7 Improving tests performance 2021-05-17 14:42:19 -03:00
João M. Bezerra
a4ca0a6621 Adding tests for compression and decompression 2021-05-17 14:41:29 -03:00