Home | History | Annotate | Download | only in test_lib_json

Lines Matching refs:failure

109          // Link the PredicateContext to the failure for message target when 
127 Failure failure;
128 failure.file_ = file;
129 failure.line_ = line;
132 failure.expr_ = expr;
134 failure.nestingLevel_ = nestingLevel;
135 failures_.push_back( failure );
147 // Set message target to popped failure
191 printf( "* Detail of %s test failure:\n", name_.c_str() );
198 const Failure &failure = *it;
199 std::string indent( failure.nestingLevel_ * 2, ' ' );
200 if ( failure.file_ )
202 printf( "%s%s(%d): ", indent.c_str(), failure.file_, failure.line_ );
204 if ( !failure.expr_.empty() )
206 printf( "%s\n", failure.expr_.c_str() );
208 else if ( failure.file_ )
212 if ( !failure.message_.empty() )
214 std::string reindented = indentText( failure.message_, indent + " " );
389 printf( "%d/%d tests passed (%d failure(s))\n", passedCount, count, failedCount );