Skip to content

STYLE: Make test style more consistent#2534

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:ImproveTestsStyle
May 18, 2021
Merged

STYLE: Make test style more consistent#2534
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:ImproveTestsStyle

Conversation

@jhlegarreta
Copy link
Copy Markdown
Member

Make test style more consistent:

  • Use the ITK testing macros to reduce boilerplate code.
  • Increase consistency in the missing argument check message and test
    ending messages.
  • Define the constant expressions (e.g. the image dimensionality) at a
    single place at the beginning of the tests.
  • Use the ITK C++ coding style (e.g. do not capitalize first letter in
    local variable names, etc.).

Take advantage of the commit to fix some typos.

PR Checklist

@jhlegarreta
Copy link
Copy Markdown
Member Author

Note that this change does not mean to be exhaustive at all. I just came across these cases while I was working on #2327. Thanks.

@github-actions github-actions Bot added area:Filtering Issues affecting the Filtering module area:IO Issues affecting the IO 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 labels May 15, 2021
Copy link
Copy Markdown
Contributor

@Leengit Leengit left a comment

Choose a reason for hiding this comment

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

Looks good. I'd approve the merge, but I think you should get someone else's eyes on this too.

Comment thread Modules/IO/MINC/test/itkMINCImageIOTest_2D.cxx Outdated
Make test style more consistent:
- Use the ITK testing macros to reduce boilerplate code.
- Increase consistency in the missing argument check message and test
  ending messages.
- Define the constant expressions (e.g. the image dimensionality) at a
  single place at the beginning of the tests.
- Use the ITK C++ coding style (e.g. do not capitalize first letter in
  local variable names, etc.).

Take advantage of the commit to fix some typos.
@dzenanz dzenanz merged commit 8132e06 into InsightSoftwareConsortium:master May 18, 2021
@jhlegarreta jhlegarreta deleted the ImproveTestsStyle branch May 18, 2021 15:40
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 area:IO Issues affecting the IO 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.

3 participants