mirror of
https://github.com/catchorg/Catch2.git
synced 2025-04-29 12:03:53 +00:00
This commit also strips the old copyright comment header in touched files, as those will also be replaced with a more standardized and machine-friendly version.
35 lines
755 B
C++
35 lines
755 B
C++
#ifndef CATCH_TOTALS_HPP_INCLUDED
|
|
#define CATCH_TOTALS_HPP_INCLUDED
|
|
|
|
#include <cstddef>
|
|
|
|
namespace Catch {
|
|
|
|
struct Counts {
|
|
Counts operator - ( Counts const& other ) const;
|
|
Counts& operator += ( Counts const& other );
|
|
|
|
std::size_t total() const;
|
|
bool allPassed() const;
|
|
bool allOk() const;
|
|
|
|
std::size_t passed = 0;
|
|
std::size_t failed = 0;
|
|
std::size_t failedButOk = 0;
|
|
};
|
|
|
|
struct Totals {
|
|
|
|
Totals operator - ( Totals const& other ) const;
|
|
Totals& operator += ( Totals const& other );
|
|
|
|
Totals delta( Totals const& prevTotals ) const;
|
|
|
|
int error = 0;
|
|
Counts assertions;
|
|
Counts testCases;
|
|
};
|
|
}
|
|
|
|
#endif // CATCH_TOTALS_HPP_INCLUDED
|