mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-04 10:58:06 +00:00
Refactored internal interfaces to use Totals instead of success/ fail
This commit is contained in:
parent
8d93949b19
commit
9bbaeba3ae
7 changed files with 43 additions and 45 deletions
|
@ -18,8 +18,8 @@ namespace Catch
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
std::size_t EmbeddedRunner::runMatching
|
||||
(
|
||||
const std::string& rawTestSpec
|
||||
)
|
||||
const std::string& rawTestSpec
|
||||
)
|
||||
{
|
||||
std::ostringstream oss;
|
||||
Config config;
|
||||
|
@ -32,8 +32,7 @@ namespace Catch
|
|||
{
|
||||
Runner runner( config );
|
||||
result = runner.runMatching( rawTestSpec );
|
||||
m_successes = runner.getSuccessCount();
|
||||
m_failures = runner.getFailureCount();
|
||||
m_totals = runner.getTotals();
|
||||
}
|
||||
m_output = oss.str();
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue