-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STYLE: Improve style in miscellaneous tests #4203
Merged
dzenanz
merged 10 commits into
InsightSoftwareConsortium:master
from
jhlegarreta:ImproveStyleInMiscellaneousTests2
Sep 6, 2023
Merged
STYLE: Improve style in miscellaneous tests #4203
dzenanz
merged 10 commits into
InsightSoftwareConsortium:master
from
jhlegarreta:ImproveStyleInMiscellaneousTests2
Sep 6, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:Core
Issues affecting the Core module
area:Filtering
Issues affecting the Filtering module
area:Registration
Issues affecting the Registration module
area:Video
Issues affecting the Video module
type:Style
Style changes: no logic impact (indentation, comments, naming)
area:Numerics
Issues affecting the Numerics module
labels
Sep 4, 2023
dzenanz
approved these changes
Sep 4, 2023
Increase consistency in the missing argument check message, following the ITK SW guide coding guidelines. Specifically, make the error message be consistent.
Conform to ITK style guidelines in test ending message: add it where missing and modify it where existing to match the ITK SWG module to increase consistency.
jhlegarreta
force-pushed
the
ImproveStyleInMiscellaneousTests2
branch
3 times, most recently
from
September 5, 2023 02:05
9fd7044
to
33e3ef6
Compare
Prefer declaring image dimensions as `constexpr <type>` over `struct` in tests: a struct does not provide any particular advantage to host the image dimensions. Declare the type as an `unsigned int` and change the loop index variables accordingly to avoid signed/unsiged comparison mismatch warnings. Take advantage of the commit to limit the loop index variables' scope to the loop.
Conform to ITK comment style for within code comments in tests: prefer double forward slashes for within code comment blocks, and place the comment blocks preferably immediately before the statemet they refer to. Take advantage of the commit to use sentence cases in miscellaneous comments.
Remove unnecessary and uninformative single-comment and empty comment lines in tests.
Remove uninformative standard output message in `itkHistogramTest.cxx`.
Remove uninformative comments in tests.
Do not allow lonely `std::cout << std::endl` statements in miscellaneous tests: move them to the preceding standard output message printing statment.
Increase consistency in newline character use in tests: use `std::endl` instead of `\n` to introduce new lines. Remove `\n` characters in excess in miscellaneous output stream messages.
Remove blank lines in excess in miscellaneous tests.
jhlegarreta
force-pushed
the
ImproveStyleInMiscellaneousTests2
branch
from
September 5, 2023 02:08
33e3ef6
to
603b67d
Compare
dzenanz
approved these changes
Sep 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:Core
Issues affecting the Core module
area:Filtering
Issues affecting the Filtering module
area:Numerics
Issues affecting the Numerics module
area:Registration
Issues affecting the Registration module
area:Video
Issues affecting the Video 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
constexpr <type>
overstruct
for image dimensionPR Checklist