Reformatting

This commit is contained in:
Phil Nash 2012-05-16 15:02:51 +01:00
parent 0afa09f7c1
commit ee18b8c507
6 changed files with 65 additions and 191 deletions

View file

@ -15,10 +15,7 @@
namespace Catch{
std::size_t EmbeddedRunner::runMatching(
const std::string& rawTestSpec,
const std::string& reporter )
{
std::size_t EmbeddedRunner::runMatching( const std::string& rawTestSpec, const std::string& reporter ) {
std::ostringstream oss;
Config config;
config.setStreamBuf( oss.rdbuf() );
@ -38,17 +35,11 @@ namespace Catch{
return result;
}
void MockReporter::Result
(
const ResultInfo& resultInfo
)
{
void MockReporter::Result( const ResultInfo& resultInfo ) {
if( resultInfo.getResultType() == ResultWas::Ok )
return;
switch( resultInfo.getResultType() )
{
switch( resultInfo.getResultType() ) {
case ResultWas::Info:
m_log << "Info";
break;
@ -96,10 +87,8 @@ namespace Catch{
m_log << resultInfo.getExpandedExpression();
}
void MockReporter::openLabel( const std::string& label, const std::string& arg )
{
if( shouldRecord( label ) )
{
void MockReporter::openLabel( const std::string& label, const std::string& arg ) {
if( shouldRecord( label ) ) {
m_log << m_indent << "\\" << label;
if( !arg.empty() )
m_log << " " << arg;
@ -108,10 +97,8 @@ namespace Catch{
}
}
void MockReporter::closeLabel( const std::string& label, const std::string& arg )
{
if( shouldRecord( label ) )
{
void MockReporter::closeLabel( const std::string& label, const std::string& arg ) {
if( shouldRecord( label ) ) {
m_indent = m_indent.substr( 0, m_indent.size()-1 );
m_log << m_indent << "/" << label;
if( !arg.empty() )