Skip to content

Commit 4c835cb

Browse files
authored
Merge pull request #125 from jhlegarreta/UpdateTestingMacrosNames
DOC: Update ITK testing macros names
2 parents 11ca92f + 8ac0357 commit 4c835cb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,7 +2755,7 @@ \subsection{Empty Lines}
27552755
hMinimaFilter->SetInput( reader->GetOutput() );
27562756
27572757
// Run the filter
2758-
TRY_EXPECT_NO_EXCEPTION( hMinimaFilter->Update() );
2758+
ITK_TRY_EXPECT_NO_EXCEPTION( hMinimaFilter->Update() );
27592759
27602760
27612761
// Write the output
@@ -2764,7 +2764,7 @@ \subsection{Empty Lines}
27642764
writer->SetFileName( argv[2] );
27652765
writer->SetInput( hMinimaFilter->GetOutput() );
27662766
2767-
TRY_EXPECT_NO_EXCEPTION( writer->Update() );
2767+
ITK_TRY_EXPECT_NO_EXCEPTION( writer->Update() );
27682768
27692769
27702770
std::cout << "Test finished." << std::endl;
@@ -3146,7 +3146,7 @@ \section{Using Standard Macros}
31463146
31473147
\small
31483148
\begin{minted}[baselinestretch=1,fontsize=\footnotesize,linenos=false,bgcolor=ltgray]{cpp}
3149-
TRY_EXPECT_NO_EXCEPTION( writer->Update() );
3149+
ITK_TRY_EXPECT_NO_EXCEPTION( writer->Update() );
31503150
\end{minted}
31513151
\normalsize
31523152
@@ -3569,9 +3569,9 @@ \subsection{Code Layout in Tests}
35693569
\item Input argument number check.
35703570
\item Input image read (or generation).
35713571
\item \code{foo} class instantiation and basic object checks (e.g.
3572-
\code{EXERCISE\_BASIC\_OBJECT\_METHODS}).
3572+
\code{ITK\_EXERCISE\_BASIC\_OBJECT\_METHODS}).
35733573
\item \code{foo} class properties' input argument read and test (e.g. using the
3574-
macros in \code{itkTestingMacro.h}, such as \code{TEST\_SET\_GET\_OBJECT}, etc.).
3574+
macros in \code{itkTestingMacro.h}, such as \code{ITK\_TEST\_SET\_GET\_OBJECT}, etc.).
35753575
\item \code{foo} class \code{Update()}.
35763576
\item Regression checks.
35773577
\item Output image write.

SoftwareGuide/Latex/DevelopmentGuidelines/CreateAModule.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,21 +365,21 @@ \section{Tests}
365365
\item \texttt{itkTestingMacros.h}: it contains a number of macros that allow
366366
testing of basic object properties:
367367
\begin{itemize}
368-
\item \code{EXERCISE\_BASIC\_OBJECT\_METHODS()}: verifies whether the class and
368+
\item \code{ITK\_EXERCISE\_BASIC\_OBJECT\_METHODS()}: verifies whether the class and
369369
superclass names provided match the RTTI, and exercises the \code{PrintSelf()}
370370
method. Since the \code{PrintSelf()} method prints all class member variables,
371371
this macro, when exercised, can identify uninitialized member variables.
372-
\item \code{TEST\_SET\_GET\_VALUE()}: once a member variable value has been set
372+
\item \code{ITK\_TEST\_SET\_GET\_VALUE()}: once a member variable value has been set
373373
using the corresponding Set macro, this macro verifies that the value provided
374374
to the \code{Set()} method was effectively assigned to the member variable
375375
by comparing it to the value returned by the \code{Get()} value.
376-
\item \code{TEST\_SET\_GET\_BOOLEAN()}: exercises the \code{Set()/Get()},
376+
\item \code{ITK\_TEST\_SET\_GET\_BOOLEAN()}: exercises the \code{Set()/Get()},
377377
and \code{On()/Off()} methods of class applied to a boolean member variable.
378378
\end{itemize}
379-
\item \code{TRY\_EXPECT\_NO\_EXCEPTION()}: exercises a method which is expected to
379+
\item \code{ITK\_TRY\_EXPECT\_NO\_EXCEPTION()}: exercises a method which is expected to
380380
return with no errors. It is only required for methods that are known to throw
381381
exceptions, such as I/O operations, filter updates, etc.
382-
\item \code{TRY\_EXPECT\_EXCEPTION()}: exercises a method in the hope of detecting
382+
\item \code{ITK\_TRY\_EXPECT\_EXCEPTION()}: exercises a method in the hope of detecting
383383
an exception. This macro allows a test to continue its execution when setting
384384
test cases bound to hit a class' exception cases. It is only required for
385385
methods that are known to throw exceptions, such as I/O operations, filter

0 commit comments

Comments
 (0)