Skip to content

Commit

Permalink
remove take_all
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Jul 28, 2024
1 parent 1a7f212 commit 1b84377
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/testtools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ function test_roundtrip_read(encoder, decoder)
end
end

# flush all nested streams and return final data
function take_all(stream)
if stream isa Base.GenericIOBuffer
seekstart(stream)
read(stream)
else
write(stream, TOKEN_END)
flush(stream)
take_all(stream.stream)
end
end

function test_roundtrip_write(encoder, decoder)
for n in vcat(0:30, sort!(rand(500:100_000, 30))), alpha in (0x00:0xff, 0x00:0x0f)
data = rand(alpha, n)
Expand Down

0 comments on commit 1b84377

Please sign in to comment.