@@ -128,14 +128,14 @@ end
128
128
129
129
# TODO : This should be moved to CodecZlib.jl.
130
130
import CodecZlib
131
- import CodecZlib: GzipCompression, GzipDecompression
132
- TranscodingStreams. test_chunked_read (GzipCompression, GzipDecompression )
133
- TranscodingStreams. test_chunked_write (GzipCompression, GzipDecompression )
134
- TranscodingStreams. test_roundtrip_fileio (GzipCompression, GzipDecompression )
131
+ import CodecZlib: GzipCompressor, GzipDecompressor
132
+ TranscodingStreams. test_chunked_read (GzipCompressor, GzipDecompressor )
133
+ TranscodingStreams. test_chunked_write (GzipCompressor, GzipDecompressor )
134
+ TranscodingStreams. test_roundtrip_fileio (GzipCompressor, GzipDecompressor )
135
135
136
136
@testset " seek" begin
137
- data = transcode (GzipCompression , b " abracadabra" )
138
- stream = TranscodingStream (GzipDecompression (), IOBuffer (data))
137
+ data = transcode (GzipCompressor , b " abracadabra" )
138
+ stream = TranscodingStream (GzipDecompressor (), IOBuffer (data))
139
139
seekstart (stream)
140
140
@test read (stream, 3 ) == b " abr"
141
141
seekstart (stream)
@@ -145,20 +145,20 @@ TranscodingStreams.test_roundtrip_fileio(GzipCompression, GzipDecompression)
145
145
end
146
146
147
147
@testset " panic" begin
148
- stream = TranscodingStream (GzipDecompression (), IOBuffer (" some invalid data" ))
148
+ stream = TranscodingStream (GzipDecompressor (), IOBuffer (" some invalid data" ))
149
149
@test_throws ErrorException read (stream)
150
150
@test_throws ArgumentError eof (stream)
151
151
end
152
152
153
153
@testset " open" begin
154
- open (CodecZlib. GzipDecompressionStream , joinpath (dirname (@__FILE__ ), " abra.gzip" )) do stream
154
+ open (CodecZlib. GzipDecompressorStream , joinpath (dirname (@__FILE__ ), " abra.gzip" )) do stream
155
155
@test read (stream) == b " abracadabra"
156
156
end
157
157
end
158
158
159
159
@testset " stats" begin
160
160
size = filesize (joinpath (dirname (@__FILE__ ), " abra.gzip" ))
161
- stream = CodecZlib. GzipDecompressionStream (open (joinpath (dirname (@__FILE__ ), " abra.gzip" )))
161
+ stream = CodecZlib. GzipDecompressorStream (open (joinpath (dirname (@__FILE__ ), " abra.gzip" )))
162
162
stats = TranscodingStreams. stats (stream)
163
163
@test stats. in == 0
164
164
@test stats. out == 0
174
174
@test_throws ArgumentError TranscodingStreams. stats (stream)
175
175
176
176
buf = IOBuffer ()
177
- stream = CodecZlib. GzipCompressionStream (buf)
177
+ stream = CodecZlib. GzipCompressorStream (buf)
178
178
stats = TranscodingStreams. stats (stream)
179
179
@test stats. in == 0
180
180
@test stats. out == 0
0 commit comments