[Insight-developers] STEP 1: REMOVE UNTESTED CODE BY FRIDAY
AUGUST 8, 9:00 EST
Mark Foskey
mark_foskey at unc . edu
Tue, 05 Aug 2003 15:04:05 -0400
Luis Ibanez wrote:
> Abtract classes must be tested by instantiating one
> of their concrete derived classes and exercising on
> them the functionalities provided by the abtract class.
Sometimes it might not be obvious how to get your hands on the
base-class version of a virtual function, if the base class is abstract.
Don't forget that you can do:
pointerToDerivedClass->BaseClass::Function();
This came up for us because there was a header file for an abstract base
class for which the only implemented line was itkTypeMacro. It would
probably be a reasonable candidate for exemption, but now it'll be tested.
--
Mark Foskey (919) 843-5436 Computer-Aided Diagnosis and Display Lab
mark_foskey at unc . edu Department of Radiology, CB 7515, UNC
http://www . cs . unc . edu/~foskey Chapel Hill, NC 27599-7515