#ifndef PYLOG_FORMATTER_H_SEEN
#define PYLOG_FORMATTER_H_SEEN
#include <cstring>
#ifndef _CXXTEST_HAVE_STD
# define _CXXTEST_HAVE_STD
#endif // _CXXTEST_HAVE_STD
#include <cxxtest/ErrorFormatter.h>
#include <cxxtest/StdValueTraits.h>
#ifdef _CXXTEST_OLD_STD
# include <iostream.h>
#else // !_CXXTEST_OLD_STD
# include <iostream>
#endif // _CXXTEST_OLD_STD
{
{
_o(o),
_runPassed(true),
_suiteIndex(-1),
_testIndex(-1)
{}
{
}
{
unsigned int skippedCount = 0;
unsigned int failedCount = 0;
unsigned int warnedCount = 0;
unsigned int passedCount = 0;
// Test Name
_padOut( i, 3 );
(*_o) << "_";
_padOut( j, 3);
(*_o) << " ";
// Test Description
(*_o) << " ";
for ( unsigned z = sent; z < 56; z++ ) {
(*_o) << " ";
}
(*_o) << " : ";
switch ( _status[i][j] ) {
case OK:
(*_o) << "PASS";
passedCount++;
break;
case SKIPPED:
(*_o) << "OMIT";
skippedCount++;
break;
case WARNING:
(*_o) << "WARNING";
warnedCount++;
break;
case ERROR:
(*_o) << "FAILURE";
failedCount++;
break;
}
for ( CXXTEST_STD(vector)<CXXTEST_STD(string)>::iterator it = _messages[i][j].begin(); it < _messages[i][j].end(); ++it ) {
}
}
}
(*_o) << "Command line asked for " << desc.numTotalTests() << " of " << desc.numTotalTests() << " tests" << endl;
(*_o) << "Of those: "
<< skippedCount << " Skipped, "
<< failedCount << " Failed, "
<< warnedCount << " Warned, "
<< passedCount << " Passed"
<< endl;
}
{
(void)desc;
_suiteIndex++;
_testIndex = -1;
}
}
{
(void)desc;
}
{
(void)desc;
_testIndex++;
}
}
}
{
(void)desc;
}
const char * expression )
{
}
const char * expression )
{
}
const char * expression )
{
}
const char * expression )
{
}
const char * x, const char * y )
{
tmp += "Expected (";
tmp += " == ";
tmp += "), found (";
tmp += x;
tmp += " != ";
tmp += y;
tmp += ")";
}
const char * /*xStr*/, const char * /*yStr*/,
const char * /*sizeStr*/, const void * /*x*/,
const void * /*y*/, unsigned /*size*/ )
{
}
const char * /*xStr*/, const char * /*yStr*/,
const char * /*dStr*/, const char * /*x*/,
const char * /*y*/, const char * /*d*/ )
{
}
const char * value )
{
tmp += "Expected (";
tmp += " != ";
tmp += "), found (";
tmp += ")";
}
const char * x, const char * y )
{
tmp += "Expected (";
tmp += " < ";
tmp += "), found (";
tmp += x;
tmp += " >= ";
tmp += y;
tmp += ")";
}
const char * x, const char * y )
{
tmp += "Expected (";
tmp += " <= ";
tmp += "), found (";
tmp += x;
tmp += " > ";
tmp += y;
tmp += ")";
}
const char * /*predicate*/, const char * /*xStr*/, const char * /*x*/ )
{
}
const char * /*relation*/, const char * /*xStr*/, const char * /*yStr*/,
const char * /*x*/, const char * /*y*/ )
{
}
const char * /*expression*/, const char * /*type*/,
bool /*otherThrown*/ )
{
}
const char * expression )
{
}
enum ErrorLevel {
OK,
};
{
return _o;
}
_runPassed = false;
}
}
}
_runPassed = false;
}
}
}
}
_runPassed = false;
}
}
}
{
for ( int j = 1; j < digits; j++ ) {
match *= 10;
}
{
(*_o) << "0";
}
}
{
OutputStream::endl( o );
}
{
}
return tmp;
}
bool _runPassed;
int _suiteIndex;
int _testIndex;
};
} // namespace CxxTest
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
#endif // PYLOG_FORMATTER_H_SEEN