[Insight-developers] coverage for Type macro

Jisung Kim bahrahm at yahoo . com
Wed, 6 Aug 2003 14:33:50 -0700 (PDT)


Hi.

The MaximumDecisionRule (one of the DecisionRuleBase
class's subclasses) is tested in the
itkCommonPrintTest. However, the test result doesn't
print the supclass name. 

Is there other print test program that I have to add
lines to test the superclass' GetNameOfClass?

Thanks,

--- "Lorensen, William E (Research)"
<lorensen at crd . ge . com> wrote:
> 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
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk . org
>
http://www . itk . org/mailman/listinfo/insight-developers


=====
Jisung Kim
bahrahm at yahoo . com
106 Mason Farm Rd.
129 Radiology Research Lab., CB# 7515
Univ. of North Carolina at Chapel Hill
Chapel Hill, NC 27599-7515

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder . yahoo . com