-
Notifications
You must be signed in to change notification settings - Fork 2
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
ENH: Add tests to the module. #8
ENH: Add tests to the module. #8
Conversation
👍 |
Awesome @jhlegarreta ! Could this please be rebased on Even without full coverage, we can create an issue to improve the tests, and merge this to get the builds going again. |
359e693 rebased on master. |
Add tests to the module.
…mage To address: In file included from /home/matt/src/ITKNDReg/test/itkWrapExtrapolateImageFunctionTest.cxx:19: /home/matt/src/ITKNDReg/include/itkWrapExtrapolateImageFunction.h:112:8: warning: 'SetInputImage' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] void SetInputImage(const InputImageType*ptr) ^ /home/matt/src/ITKNDReg/test/itkWrapExtrapolateImageFunctionTest.cxx:41:3: note: in instantiation of template class 'itk::WrapExtrapolateImageFunction<itk::Image<float, 2>, float>' requested here WrapExtrapolateImageFunctionType::Pointer wrapExtrapolateImageFunction = ^ /home/matt/src/ITK/Modules/Core/ImageFunction/include/itkImageFunction.h:111:16: note: overridden virtual function is here virtual void SetInputImage(const InputImageType *ptr);
We do not create any libraries (there is no longer an "src" directory).
…ilterTest This has issues and does not appear to be exercised in the ndreg repository.
Detected by: include/itkMetamorphosisImageRegistrationMethodv4.h:74:8: warning: 'ThreadedGenerateData' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] ThreadedGenerateData has been replace by DynamicThreadedGenerateData in ITK 5: https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/ITK5MigrationGuide.md
To address: include/itkMetamorphosisImageRegistrationMethodv4.h:228:8: warning: 'StartOptimization' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
To address: include/itkMetamorphosisImageRegistrationMethodv4.hxx:59:90: warning: instantiation of variable 'itk::NumericTraits<itk::CovariantVector<double, 2> >::One' required here, but no definition is available [-Wundefined-var-template]
To address: d:\a\1\s\include\itkMetamorphosisImageRegistrationMethodv4.hxx(144): warning C4101: 'B': unreferenced local variable
I really did not take the time to looks at the issues of this PR, but now that I look at them, probably the CI failures in the rest of the PRs are related to some of these commits, so thanks @thewtex . This is awesome 👍 |
The module builds fine now ✔️ , but Python packaging seems not to work properly:
May be we are having issues with the pipeline configuration? |
Thanks @jhlegarreta -- even these minimal test caught a few bugs! @vikramc1 more testing would certainly be helpful ;-). @jhlegarreta yes, can you please rebase the other branches? |
Sure I can. Thanks @thewtex . |
Add tests to the module.