Skip to content

Conversation

@jhlegarreta
Copy link
Member

  • STYLE: Use ITK_TRY_EXPECT_NO_EXCEPTION macro in ImageCompose tests
  • STYLE: Conform to ITK style guidelines in test ending message
  • STYLE: Conform to ITK style guidelines in test arg check message
  • STYLE: Perform first the test input argument check
  • STYLE: Remove unnecessary/uninformative comment block in test
  • STYLE: Do not capitalize variable first letter

PR Checklist

Use `ITK_TRY_EXPECT_NO_EXCEPTION` macro in `ImageCompose` tests:
- Use `ITK_TRY_EXPECT_NO_EXCEPTION` macro when updating filters in lieu
  of `try/catch` blocks for the sake of readability and compactness, and
  to save typing/avoid boilerplate code.
- Only place with the macro the code that might raise exceptions.
Conform to ITK style guidelines in test ending message across the
`ImageCompose` module test files: add it where missing and use the same
message consistently.

Take advantage of the commit to remove unnecessary comments about
objects being destroyed when exiting the test main method.
Conform to ITK style guidelines in test argument check message across
the `ImageCompose` module test files: add the missing argument message
where missing and use the same message consistently.
Perform first the test input argument check across the `ImageCompose`
module test files.

Take advantage of the commit to add the missing argument message where
missing and use the same message consistently.
Remove unnecessary/uninformative comment block in `ImageCompose` module
test.
Do not capitalize variable first letter: adhere to ITK style guidelines.
@github-actions github-actions bot added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Filtering Issues affecting the Filtering module type:Style Style changes: no logic impact (indentation, comments, naming) labels Feb 2, 2025
@jhlegarreta jhlegarreta force-pushed the MiscImageComposeTestStyleEnh branch from 9a82d83 to 5042dc9 Compare February 2, 2025 18:17
@jhlegarreta jhlegarreta merged commit ed1eaec into InsightSoftwareConsortium:master Feb 2, 2025
15 checks passed
@jhlegarreta jhlegarreta deleted the MiscImageComposeTestStyleEnh branch February 2, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module type:Style Style changes: no logic impact (indentation, comments, naming) 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