MOAB: Mesh Oriented datABase  (version 5.2.1)
SummaryOutput Class Reference

Public Member Functions

 SummaryOutput (FILE *file, CppUnit::TestResultCollector *result)
void write ()

Private Attributes

FILE * file_
CppUnit::TestResultCollector * results_

Detailed Description

Definition at line 44 of file msq_test_main.cpp.


Constructor & Destructor Documentation

SummaryOutput::SummaryOutput ( FILE *  file,
CppUnit::TestResultCollector *  result 
) [inline]

Definition at line 47 of file msq_test_main.cpp.

: file_( file ), results_( result ) {}

Member Function Documentation

Definition at line 135 of file msq_test_main.cpp.

{
    CppUnit::TestResultCollector::TestFailures fails = results_->failures();
    CppUnit::TestResultCollector::Tests tests        = results_->tests();

    CppUnit::TestResultCollector::TestFailures::const_iterator f_iter = fails.begin();
    CppUnit::TestResultCollector::Tests::const_iterator t_iter;

    fprintf( file_, "****Tests Run:\n" );
    for( t_iter = tests.begin(); t_iter != tests.end(); ++t_iter )
        fprintf( file_, "%s\n", ( *t_iter )->getName().c_str() );

    fprintf( file_, "****Tests Failed:\n" );
    for( f_iter = fails.begin(); f_iter != fails.end(); ++f_iter )
        fprintf( file_, "%s\n", ( *f_iter )->failedTestName().c_str() );
}

Member Data Documentation

FILE* SummaryOutput::file_ [private]

Definition at line 51 of file msq_test_main.cpp.

CppUnit::TestResultCollector* SummaryOutput::results_ [private]

Definition at line 52 of file msq_test_main.cpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines