Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Totals Struct Reference

#include <catch_totals.h>

Collaboration diagram for Catch::Totals:

Public Member Functions

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

Public Attributes

int error = 0
 
Counts assertions
 
Counts testCases
 

Detailed Description

Definition at line 2466 of file catch.hpp.

Member Function Documentation

◆ delta() [1/2]

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

Definition at line 50 of file catch_totals.cpp.

50 {
51 Totals diff = *this - prevTotals;
52 if( diff.assertions.failed > 0 )
53 ++diff.testCases.failed;
54 else if( diff.assertions.failedButOk > 0 )
55 ++diff.testCases.failedButOk;
56 else
57 ++diff.testCases.passed;
58 return diff;
59 }
void diff(const std::string &a, const std::string &b)
Definition jmp.cpp:18
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delta() [2/2]

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

◆ operator+=() [1/2]

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

Definition at line 44 of file catch_totals.cpp.

44 {
45 assertions += other.assertions;
46 testCases += other.testCases;
47 return *this;
48 }
Counts assertions

◆ operator+=() [2/2]

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

◆ operator-() [1/2]

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

Definition at line 37 of file catch_totals.cpp.

37 {
38 Totals diff;
39 diff.assertions = assertions - other.assertions;
40 diff.testCases = testCases - other.testCases;
41 return diff;
42 }
Here is the call graph for this function:

◆ operator-() [2/2]

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

Member Data Documentation

◆ assertions

Counts Catch::Totals::assertions

Definition at line 36 of file catch_totals.h.

◆ error

int Catch::Totals::error = 0

Definition at line 35 of file catch_totals.h.

◆ testCases

Counts Catch::Totals::testCases

Definition at line 37 of file catch_totals.h.


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