ENH: Increase coverage for miscellaneous classes#3003
Conversation
8921311 to
cba0777
Compare
dzenanz
left a comment
There was a problem hiding this comment.
This seems to uncover some FFT failures. Maybe once #3002 is integrated, they will go away? Otherwise awesome!
cba0777 to
b36f5a8
Compare
I think they were more of my mistake than actual bugs: when registering the |
|
Thanks for doing this @jhlegarreta ! Yes, the superclass name for each distinct
It looks like FFT failures stem from class name failures rather than superclass name failures at the moment:
EDIT: See discussion in review below. |
b36f5a8 to
ba0aae0
Compare
027520e to
5643fdb
Compare
Increase coverage for miscellaneous classes: - Exercise the basic object methods using the `ITK_EXERCISE_BASIC_OBJECT_METHODS` macro. - 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, and rely on it to set the boolean ivar values. - Make the calls to the Get methods be quantitative where they were just being called without being compared to the expected value. - Test exceptions using the `ITK_TRY_EXPECT_EXCEPTION` macro. - Convert existing hard-coded parameters to test input parameters and add parameters to the tests where appropriate so that different valued-tests can be added. - Remove explicit calls to the `Print` method and rely on the basic method exercising macro call. - Remove explicit calls to the `GetNameOfClass` and rely on the basic method exercising macro call.
5643fdb to
ddd6563
Compare
|
Folks, the tests were passing on Windows, but not for Linux/macOS when uncommenting the I had tested locally using a Windows/MSVC build before posting #3003 (comment), so I do not understand how these statements or the instance types are interpreted differently across different compilers. I do not have a Linux/macOS machine at hand to be able to try to investigate this. Also, note that in the #2286 (comment) I cross-referenced in the issue #3008, I was experiencing this very same behavior (passing on Windows/MSVC, other CIs reporting errors) for another class. And maybe related, in #2991 (comment) I also noticed some inconsistent behavior across platforms/compilers. I have push forced again in ddd6563 the files commenting out the concerned statements. I think best is to have it merged as it is, and investigate the issue separately. Otherwise, this is blocking changes to the other 90 files. |
|
Thanks for this large contribution! |
|
Thanks for testing @jhlegarreta , I agree with the decision to go ahead and merge. I'll investigate different behavior among platforms as this may relate to #2233 as well. |
Increase coverage for miscellaneous classes:
ITK_EXERCISE_BASIC_OBJECT_METHODSmacro.ITK_TEST_SET_GET_VALUEmacro.ITK_TEST_SET_GET_BOOLEANmacro, andrely on it to set the boolean ivar values.
being called without being compared to the expected value.
ITK_TRY_EXPECT_EXCEPTIONmacro.add parameters to the tests where appropriate so that different
valued-tests can be added.
Printmethod and rely on the basicmethod exercising macro call.
GetNameOfClassand rely on the basicmethod exercising macro call.
PR Checklist