Skip to content

Commit

Permalink
ENH: Test CanReadFile for DICOM files with a preamble
Browse files Browse the repository at this point in the history
Testing coverage for #4108. We are re-using the test coverage of
CanReadFile in the no-preamble test to ensure that files with a
preamble are also evaluated correctly.
  • Loading branch information
thewtex committed Mar 13, 2024
1 parent 8427bbe commit a099f08
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Modules/IO/DCMTK/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ itk_add_test(
itkDCMTKImageIONoPreambleTest
DATA{Input/NoPreambleDicomTest.dcm})

# Re-use the test driver to ensure that CanReadFile returns true for a file
# with a preamble.
itk_add_test(
NAME
itkDCMTKImageIOPreambleCanReadTest
COMMAND
ITKIODCMTKTestDriver
itkDCMTKImageIONoPreambleTest
DATA{Input/preamble.dcm})

itk_add_test(
NAME itkDCMTKImageIOSpacingTest
COMMAND ITKIODCMTKTestDriver itkDCMTKImageIOSpacingTest
Expand Down
10 changes: 10 additions & 0 deletions Modules/IO/GDCM/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,16 @@ itk_add_test(
itkGDCMImageIONoPreambleTest
DATA{Input/NoPreambleDicomTest.dcm})

# Re-use the test driver to ensure that CanReadFile returns true for a file
# with a preamble.
itk_add_test(
NAME
itkGDCMImageIOPreambleCanReadTest
COMMAND
ITKIOGDCMTestDriver
itkGDCMImageIONoPreambleTest
DATA{Input/preamble.dcm})

itk_add_test(
NAME
itkGDCMImageReadWriteTest_RGB
Expand Down

0 comments on commit a099f08

Please sign in to comment.