mirror of
https://github.com/google/brotli.git
synced 2026-04-06 06:03:43 +00:00
Test cases do not include multiple metablocks with data #63
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ende76 on GitHub (Nov 10, 2015).
Unless my analysis is incorrect, all of the test cases with multiple metablocks have the compressed data contained in just one of those metablocks.
Consequently, the tests don't seem to cover a case where
That means that erikzenker's PR #258 passes, while I believe it should fail.
@ende76 commented on GitHub (Nov 10, 2015):
@szabadka You have already addressed my immediate concern with PR #258 (I was wrong there).
I still think it would be good to have a test case with multiple non-empty metablocks, but I don't think it's as much of a pressing matter any more.
I would not object to closing this as not important enough to warrant constructing a test case, possibly manually.
@ende76 commented on GitHub (Nov 10, 2015):
I'm actually going to close this. I think, constructing a viable test case would be unnecessarily tedious, while providing no value for encoders, and only very limited value for decoders, since multiple metablocks that are non-empty are not that much more informative to a working decoder than just general multiple metablocks.
@dsnet commented on GitHub (Nov 11, 2015):
I think it would be helpful to have series of small brotli files that tests the edge conditions of the format where a decoder could implement it wrong.
I have generated some files by hand; you can see them in TestReader. So far, I only have tests that strongly exercise Sections 3.4. and 3.5, but plan on adding more tests in the near future. If you have any good test files (both valid and invalid), please share them :)
@ende76 commented on GitHub (Nov 12, 2015):
@dsnet I do have a number of test files that test for mistakes I've made. They're almost all invalid files, because my mistakes were mostly in detecting as early as possible when I could dismiss a stream. I'll put them together within the next few days.