Add a 100,000 file zip to test `count_entries`.
This commit is contained in:
parent
22e47641e6
commit
f5e19db273
|
@ -48,7 +48,8 @@ class ZipCentralDirectoryTest < MiniTest::Test
|
|||
[
|
||||
['test/data/osx-archive.zip', 4],
|
||||
['test/data/zip64-sample.zip', 2],
|
||||
['test/data/max_length_file_comment.zip', 1]
|
||||
['test/data/max_length_file_comment.zip', 1],
|
||||
['test/data/100000-files.zip', 100_000]
|
||||
].each do |filename, num_entries|
|
||||
cdir = ::Zip::CentralDirectory.new
|
||||
|
||||
|
|
Binary file not shown.
|
@ -190,7 +190,8 @@ class ZipFileTest < MiniTest::Test
|
|||
[
|
||||
['test/data/osx-archive.zip', 4],
|
||||
['test/data/zip64-sample.zip', 2],
|
||||
['test/data/max_length_file_comment.zip', 1]
|
||||
['test/data/max_length_file_comment.zip', 1],
|
||||
['test/data/100000-files.zip', 100_000]
|
||||
].each do |filename, num_entries|
|
||||
assert_equal(num_entries, ::Zip::File.count_entries(filename))
|
||||
|
||||
|
|
Loading…
Reference in New Issue