Files
transmission/tests
reardonia 04922eca8d reject .torrent files with missing info:[pieces] key (#8333)
* reject .torrent files with missing info:[pieces] key

* reduce test torrent size

* add more tests for bad 'pieces' key

* use files_.total_size()

* fixup code_style

* anonymize piece hashes

* move dupe files check to finishInfoDict()

* better piece count comparison

* add test for dupe files

* revert else if -> else

* update for #8409, move tests to torrents-metainfo suite

* add test for duplicate pieces key and tidy

* deeper testing of error conditions

Co-authored-by: Yat Ho <lagoho7@gmail.com>

---------

Co-authored-by: Yat Ho <lagoho7@gmail.com>
2026-02-12 11:36:55 -06:00
..