Skip to content

ENH: Increase coverage for itk::ImageRegistrationMethodv4#3633

Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:IncreaseImageRegistrationMethodv4Coverage
Sep 19, 2022
Merged

ENH: Increase coverage for itk::ImageRegistrationMethodv4#3633
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:IncreaseImageRegistrationMethodv4Coverage

Conversation

@jhlegarreta
Copy link
Copy Markdown
Member

Increase coverage for itk::ImageRegistrationMethodv4:

  • Test the Set/Get methods using the ITK_TEST_SET_GET_VALUE macro.
  • Test the boolean ivars using the ITK_TEST_SET_GET_BOOLEAN macro.
  • Test other getter methods by serializing the data to the standard output.

PR Checklist

@github-actions github-actions Bot added area:Registration Issues affecting the Registration module type:Coverage Code coverage impacts type:Enhancement Improvement of existing methods or implementation type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct labels Sep 18, 2022
@jhlegarreta jhlegarreta force-pushed the IncreaseImageRegistrationMethodv4Coverage branch 2 times, most recently from 6c61b3c to 40d78f4 Compare September 18, 2022 21:06
Increase coverage for `itk::ImageRegistrationMethodv4`:
- Test the Set/Get methods using the `ITK_TEST_SET_GET_VALUE` macro.
- Test the boolean ivars using the `ITK_TEST_SET_GET_BOOLEAN` macro.
- Test other getter methods by serializing the data to the standard
  output.
@jhlegarreta jhlegarreta force-pushed the IncreaseImageRegistrationMethodv4Coverage branch from 40d78f4 to 0dc0b98 Compare September 19, 2022 00:14
@hjmjohnson hjmjohnson merged commit a639acc into InsightSoftwareConsortium:master Sep 19, 2022
@jhlegarreta jhlegarreta deleted the IncreaseImageRegistrationMethodv4Coverage branch September 19, 2022 13:56
@jhlegarreta
Copy link
Copy Markdown
Member Author

jhlegarreta commented Oct 21, 2022

Coverage has been consistently over 90% since this PR. Slightly over a hundred lines have lost their coverage since then due to some refactoring works, but coverage has not dropped below the mentioned percentage.

A year and a half ago we also achieved over 90% coverage, but shortly after we fell back to 88%. Raising the coverage back to 90% has required no small effort since then.

Hope we can increase it to be above 90% consistently.

Cross-referencing #2327 (comment).

Thanks to all that have made this possible, and tagging @luisibanez as for a prolonged period, he was at the core of those propelling this effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Registration Issues affecting the Registration module type:Coverage Code coverage impacts type:Enhancement Improvement of existing methods or implementation type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants