Skip to content

Commit

Permalink
[libromdata/tests] RomHeaderTest: Add the two Dreamcast VMS files fro…
Browse files Browse the repository at this point in the history
…m ImageDecoderTest.

Similar to the NintendoDS icons.

Code coverage changes:

Before:
  lines......: 25.7% (13698 of 53308 lines)
  functions..: 23.7% (851 of 3586 functions)

After:
  lines......: 25.8% (13764 of 53308 lines)
  functions..: 23.8% (855 of 3586 functions)

TODO: Add more Dreamcast VMS files for both ImageDecoderTest and
RomHeaderTest. (Also VMI files for RomHeaderTest.)
- Maybe use .tar.zst for ImageDecoderTest in some cases?
  • Loading branch information
GerbilSoft committed Oct 30, 2023
1 parent 45c4356 commit 676ca94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libromdata/tests/RomHeaderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,13 @@ INSTANTIATE_TEST_SUITE_P(ADX_SADX, RomHeaderTest,

/* Console */

INSTANTIATE_TEST_SUITE_P(DreamcastSave, RomHeaderTest,
testing::ValuesIn(RomHeaderTest::ReadTestCasesFromDisk(
"Console/DreamcastSave.bin.tar.zst",
"Console/DreamcastSave.txt.tar.zst",
"Console/DreamcastSave.json.tar.zst"))
, RomHeaderTest::test_case_suffix_generator);

// GameCube: A few WIA/RVZ headers to ensure they don't break again.
INSTANTIATE_TEST_SUITE_P(GameCubeWiaRvz, RomHeaderTest,
testing::ValuesIn(RomHeaderTest::ReadTestCasesFromDisk(
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 676ca94

Please sign in to comment.