Lines Matching refs:result
156 // without a matching initialization. In practice, this can result in something
2198 #pragma warning(disable:4800) // Forcing result to true or false
2208 ITransientExpression( bool isBinaryExpression, bool result )
2210 m_result( result )
3453 // the same result if we do this for floats, as if we do this for
5726 void prepareExpandedExpression(AssertionResult& result);
6828 Result result;
6868 auto&& result = Detail::complete_invoke(fun, Chronometer(meter, iters));
6870 return { meter.elapsed(), std::move(result), iters };
6889 return { Timing.elapsed, std::move(Timing.result), iters };
7134 .result;
7774 double result = 0.0;
7777 return result;
7780 result = -erfc_inv(2.0 * p);
7781 // result *= normal distribution standard deviation (1.0) * sqrt(2)
7782 result *= /*sd * */ ROOT_TWO;
7783 // result += normal disttribution mean (0)
7784 return result;
8149 void assertionEnded( AssertionResult const& result );
9101 auto result = convertInto( source, temp );
9102 if( result )
9104 return result;
9150 auto result = convertInto( arg, temp );
9151 if( result )
9153 return result;
9190 auto result = convertInto( arg, temp );
9191 return !result
9192 ? result
9360 auto result = valueRef->setValue( remainingTokens->token );
9361 if( !result )
9362 return InternalParseResult( result );
9435 auto result = flagRef->setFlag( true );
9436 if( !result )
9437 return InternalParseResult( result );
9438 if( result.value() == ParseResultType::ShortCircuitAll )
9439 return InternalParseResult::ok( ParseState( result.value(), remainingTokens ) );
9448 auto result = valueRef->setValue( argToken.token );
9449 if( !result )
9450 return InternalParseResult( result );
9451 if( result.value() == ParseResultType::ShortCircuitAll )
9452 return InternalParseResult::ok( ParseState( result.value(), remainingTokens ) );
9587 auto result = opt.validate();
9588 if( !result )
9589 return result;
9592 auto result = arg.validate();
9593 if( !result )
9594 return result;
9620 auto result = InternalParseResult::ok( ParseState( ParseResultType::NoMatch, tokens ) );
9621 while( result.value().remainingTokens() ) {
9627 result = parseInfo.parser->parse(exeName, result.value().remainingTokens());
9628 if (!result)
9629 return result;
9630 if (result.value().type() != ParseResultType::NoMatch) {
9638 if( result.value().type() == ParseResultType::ShortCircuitAll )
9639 return result;
9641 return InternalParseResult::runtimeError( "Unrecognised token: " + result.value().remainingTokens()->token );
9644 return result;
9673 // enum of result types from a parse
9806 auto result = factories.find( lcReporter );
9808 if( factories.end() != result )
10427 // reason, we get a predictable result.
12792 void RunContext::assertionEnded(AssertionResult const & result) {
12793 if (result.getResultType() == ResultWas::Ok) {
12796 } else if (!result.isOk()) {
12809 static_cast<void>(m_reporter->assertionEnded(AssertionStats(result, m_messages, m_totals)));
12811 if (result.getResultType() != ResultWas::Warning)
12816 m_lastResult = result;
12926 // Don't rebuild the result -- the stringification itself can cause more fatal errors
12927 // Instead, fake a result data.
12930 AssertionResult result(m_lastAssertionInfo, tempResult);
12932 assertionEnded(result);
13050 bool result = expr.getResult() != negated;
13052 if( result ) {
13152 CATCH_INTERNAL_ERROR("No result capture instance");
13466 auto result = m_cli.parse( clara::Args( argc, argv ) );
13467 if( !result ) {
13473 << Column( result.errorMessage() ).indent( 2 )
15773 void prepareExpandedExpression(AssertionResult& result) {
15774 result.getExpandedExpression();
15907 , result(_stats.assertionResult)
15917 switch (result.getResultType()) {
15922 if (!result.hasExpression())
15928 if (result.isOk())
15983 stream << result.getSourceInfo() << ':';
16001 if (result.hasExpression()) {
16012 if (result.hasExpression()) {
16013 stream << ' ' << result.getExpression();
16018 if (result.hasExpandedExpression()) {
16023 stream << result.getExpandedExpression();
16062 AssertionResult const& result;
16081 AssertionResult const& result = _assertionStats.assertionResult;
16085 // Drop out if result was successful and we're not printing those
16086 if( !m_config->includeSuccessfulResults() && result.isOk() ) {
16087 if( result.getResultType() != ResultWas::Warning )
16147 result(_stats.assertionResult),
16149 message(result.getMessage()),
16152 switch (result.getResultType()) {
16156 //if( result.hasMessage() )
16163 if (result.isOk()) {
16238 if (result.hasExpression()) {
16241 stream << result.getExpressionInMacro();
16246 if (result.hasExpandedExpression()) {
16249 stream << Column(result.getExpandedExpression()).indent(2) << '\n';
16263 stream << result.getSourceInfo() << ": ";
16268 AssertionResult const& result;
16490 AssertionResult const& result = _assertionStats.assertionResult;
16492 bool includeResults = m_config->includeSuccessfulResults() || !result.isOk();
16494 // Drop out if result was successful but we're not printing them.
16495 if (!includeResults && result.getResultType() != ResultWas::Warning)
17027 AssertionResult const& result = stats.assertionResult;
17028 if( !result.isOk() ) {
17030 switch( result.getResultType() ) {
17054 xml.writeAttribute( "message", result.getExpression() );
17055 xml.writeAttribute( "type", result.getTestMacroName() );
17060 if (result.hasExpression()) {
17062 rss << result.getExpressionInMacro();
17065 if (result.hasExpandedExpression()) {
17067 rss << Column(result.getExpandedExpression()).indent(2) << '\n';
17073 if( !result.getMessage().empty() )
17074 rss << result.getMessage() << '\n';
17079 rss << "at " << result.getSourceInfo();
17330 AssertionResult const& result = assertionStats.assertionResult;
17332 bool includeResults = m_config->includeSuccessfulResults() || !result.isOk();
17334 if( includeResults || result.getResultType() == ResultWas::Warning ) {
17347 // Drop out if result was successful but we're not printing them.
17348 if( !includeResults && result.getResultType() != ResultWas::Warning )
17352 if( result.hasExpression() ) {
17354 .writeAttribute( "success", result.succeeded() )
17355 .writeAttribute( "type", result.getTestMacroName() );
17357 writeSourceInfo( result.getSourceInfo() );
17360 .writeText( result.getExpression() );
17362 .writeText( result.getExpandedExpression() );
17365 // And... Print a result applicable to each result type.
17366 switch( result.getResultType() ) {
17369 writeSourceInfo( result.getSourceInfo() );
17370 m_xml.writeText( result.getMessage() );
17375 writeSourceInfo( result.getSourceInfo() );
17376 m_xml.writeText( result.getMessage() );
17381 .writeText( result.getMessage() );
17388 writeSourceInfo( result.getSourceInfo() );
17389 m_xml.writeText( result.getMessage() );
17396 if( result.hasExpression() )
17550 int result = Catch::Session().run( argc, (char**)argv );
17556 return result;