Skip to content

ENH: Add unit tests to increase coverage - #103

Merged
SimonRit merged 1 commit into
RTKConsortium:mainfrom
axel-grc:CoverageTests
Sep 1, 2026
Merged

SimonRit merged 1 commit into
RTKConsortium:mainfrom
axel-grc:CoverageTests

Conversation

@axel-grc

Copy link
Copy Markdown
Collaborator

No description provided.

@SimonRit SimonRit left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines +37 to +51
bool threw = false;
try
{
mgr->Update();
}
catch (itk::ExceptionObject &)
{
threw = true;
}
if (!threw)
{
std::cerr << "Update should throw when both buffers are dirty" << std::endl;
delete[] cpuBuf;
return EXIT_FAILURE;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check if this can be done with ITK macros? Here ITK_TRY_EXPECT_EXCEPTION.

@SimonRit
SimonRit merged commit cf8eb2c into RTKConsortium:main Sep 1, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants