ManaPlus
Public Member Functions | Data Fields
Catch::Totals Struct Reference

#include <catch.hpp>

Public Member Functions

Totals operator- (Totals const &other) const
 
Totals delta (Totals const &prevTotals) const
 
Totalsoperator+= (Totals const &other)
 

Data Fields

Counts assertions
 
Counts testCases
 

Detailed Description

Definition at line 2223 of file catch.hpp.

Member Function Documentation

◆ delta()

Totals Catch::Totals::delta ( Totals const &  prevTotals) const
inline

Definition at line 2232 of file catch.hpp.

2232  {
2233  Totals diff = *this - prevTotals;
2234  if( diff.assertions.failed > 0 )
2235  ++diff.testCases.failed;
2236  else if( diff.assertions.failedButOk > 0 )
2237  ++diff.testCases.failedButOk;
2238  else
2239  ++diff.testCases.passed;
2240  return diff;
2241  }

References assertions, Catch::Counts::failed, Catch::Counts::failedButOk, Catch::Counts::passed, and testCases.

◆ operator+=()

Totals& Catch::Totals::operator+= ( Totals const &  other)
inline

Definition at line 2243 of file catch.hpp.

2243  {
2244  assertions += other.assertions;
2245  testCases += other.testCases;
2246  return *this;
2247  }
Counts assertions
Definition: catch.hpp:2249
Counts testCases
Definition: catch.hpp:2250

References assertions, and testCases.

◆ operator-()

Totals Catch::Totals::operator- ( Totals const &  other) const
inline

Definition at line 2225 of file catch.hpp.

2225  {
2226  Totals diff;
2227  diff.assertions = assertions - other.assertions;
2228  diff.testCases = testCases - other.testCases;
2229  return diff;
2230  }

References assertions, and testCases.

Field Documentation

◆ assertions

Counts Catch::Totals::assertions

Definition at line 2249 of file catch.hpp.

Referenced by delta(), operator+=(), and operator-().

◆ testCases

Counts Catch::Totals::testCases

Definition at line 2250 of file catch.hpp.

Referenced by delta(), operator+=(), and operator-().


The documentation for this struct was generated from the following file: