|
1 | 1 | using CodecZstd |
2 | 2 | using Random |
3 | 3 | using TranscodingStreams |
| 4 | +using TestsForCodecPackages: |
| 5 | + test_roundtrip_read, |
| 6 | + test_roundtrip_write, |
| 7 | + test_roundtrip_transcode, |
| 8 | + test_roundtrip_lines, |
| 9 | + test_roundtrip_seekstart |
4 | 10 | using Test |
5 | 11 |
|
6 | 12 | Random.seed!(1234) |
@@ -39,21 +45,18 @@ Random.seed!(1234) |
39 | 45 | @test ZstdCompressorStream <: TranscodingStreams.TranscodingStream |
40 | 46 | @test ZstdDecompressorStream <: TranscodingStreams.TranscodingStream |
41 | 47 |
|
42 | | - TranscodingStreams.test_roundtrip_read(ZstdCompressorStream, ZstdDecompressorStream) |
43 | | - TranscodingStreams.test_roundtrip_write(ZstdCompressorStream, ZstdDecompressorStream) |
44 | | - TranscodingStreams.test_roundtrip_lines(ZstdCompressorStream, ZstdDecompressorStream) |
45 | | - TranscodingStreams.test_roundtrip_transcode(ZstdCompressor, ZstdDecompressor) |
| 48 | + test_roundtrip_read(ZstdCompressorStream, ZstdDecompressorStream) |
| 49 | + test_roundtrip_write(ZstdCompressorStream, ZstdDecompressorStream) |
| 50 | + test_roundtrip_lines(ZstdCompressorStream, ZstdDecompressorStream) |
| 51 | + test_roundtrip_transcode(ZstdCompressor, ZstdDecompressor) |
| 52 | + test_roundtrip_seekstart(ZstdCompressorStream, ZstdDecompressorStream) |
46 | 53 |
|
47 | 54 | frame_encoder = io -> TranscodingStream(ZstdFrameCompressor(), io) |
48 | | - TranscodingStreams.test_roundtrip_read(frame_encoder, ZstdDecompressorStream) |
49 | | - TranscodingStreams.test_roundtrip_write(frame_encoder, ZstdDecompressorStream) |
50 | | - TranscodingStreams.test_roundtrip_lines(frame_encoder, ZstdDecompressorStream) |
51 | | - TranscodingStreams.test_roundtrip_transcode(ZstdFrameCompressor, ZstdDecompressor) |
52 | | - |
53 | | - if isdefined(TranscodingStreams, :test_roundtrip_seekstart) |
54 | | - TranscodingStreams.test_roundtrip_seekstart(ZstdCompressorStream, ZstdDecompressorStream) |
55 | | - TranscodingStreams.test_roundtrip_seekstart(frame_encoder, ZstdDecompressorStream) |
56 | | - end |
| 55 | + test_roundtrip_read(frame_encoder, ZstdDecompressorStream) |
| 56 | + test_roundtrip_write(frame_encoder, ZstdDecompressorStream) |
| 57 | + test_roundtrip_lines(frame_encoder, ZstdDecompressorStream) |
| 58 | + test_roundtrip_transcode(ZstdFrameCompressor, ZstdDecompressor) |
| 59 | + test_roundtrip_seekstart(frame_encoder, ZstdDecompressorStream) |
57 | 60 |
|
58 | 61 | @testset "ZstdFrameCompressor streaming edge case" begin |
59 | 62 | codec = ZstdFrameCompressor() |
|
0 commit comments