[Insight-developers] coverage for Type macro

Lorensen, William E (Research) lorensen at crd . ge . com
Wed, 6 Aug 2003 12:59:27 -0400


Be careful. Jisung's code was not portable.

GetClassName is covered (the whole hierarchy) if you print the object.

-----Original Message-----
From: Mark Foskey [mailto:mark_foskey at unc . edu]
Sent: Wednesday, August 06, 2003 9:55 AM
To: Tolga Tasdizen; insight-developers at public . kitware . com
Subject: Re: [Insight-developers] coverage for Type macro


You need to call the function GetNameOfClass().  You might take a look 
at the last lines of 
Testing\Code\Numerics\Statistics\itkSampleClassifierTest.cxx.  In this 
case, the type specifiers before the ::'s are because Jisung needed to 
test the itkTypeMacro on the base class.

Tolga Tasdizen wrote:

> Hi,
> How do I cover the itkTypeMacro line that appears in every class in the 
> testing?
> Currently the classes I have checked in are reporting that this line is 
> not covered.
> Thanks,
> Tolga
> 
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk . org
> http://www . itk . org/mailman/listinfo/insight-developers

-- 
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

_______________________________________________
Insight-developers mailing list
Insight-developers at itk . org
http://www . itk . org/mailman/listinfo/insight-developers