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

#include <catch_totals.h>

Collaboration diagram for Catch::Counts:

Public Member Functions

Counts operator- (Counts const &other) const
 
Countsoperator+= (Counts const &other)
 
std::size_t total () const
 
bool allPassed () const
 
bool allOk () const
 
Counts operator- (Counts const &other) const
 
Countsoperator+= (Counts const &other)
 
std::size_t total () const
 
bool allPassed () const
 
bool allOk () const
 

Public Attributes

std::size_t passed = 0
 
std::size_t failed = 0
 
std::size_t failedButOk = 0
 

Detailed Description

Definition at line 2453 of file catch.hpp.

Member Function Documentation

◆ allOk() [1/2]

bool Catch::Counts::allOk ( ) const

Definition at line 33 of file catch_totals.cpp.

33 {
34 return failed == 0;
35 }
std::size_t failed
Here is the caller graph for this function:

◆ allOk() [2/2]

bool Catch::Counts::allOk ( ) const

◆ allPassed() [1/2]

bool Catch::Counts::allPassed ( ) const

Definition at line 30 of file catch_totals.cpp.

30 {
31 return failed == 0 && failedButOk == 0;
32 }
std::size_t failedButOk
Here is the caller graph for this function:

◆ allPassed() [2/2]

bool Catch::Counts::allPassed ( ) const

◆ operator+=() [1/2]

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

Definition at line 20 of file catch_totals.cpp.

20 {
21 passed += other.passed;
22 failed += other.failed;
23 failedButOk += other.failedButOk;
24 return *this;
25 }
std::size_t passed

◆ operator+=() [2/2]

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

◆ operator-() [1/2]

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

Definition at line 12 of file catch_totals.cpp.

12 {
13 Counts diff;
14 diff.passed = passed - other.passed;
15 diff.failed = failed - other.failed;
16 diff.failedButOk = failedButOk - other.failedButOk;
17 return diff;
18 }
void diff(const std::string &a, const std::string &b)
Definition jmp.cpp:18
Here is the call graph for this function:

◆ operator-() [2/2]

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

◆ total() [1/2]

std::size_t Catch::Counts::total ( ) const

Definition at line 27 of file catch_totals.cpp.

27 {
28 return passed + failed + failedButOk;
29 }

◆ total() [2/2]

std::size_t Catch::Counts::total ( ) const

Member Data Documentation

◆ failed

std::size_t Catch::Counts::failed = 0

Definition at line 24 of file catch_totals.h.

◆ failedButOk

std::size_t Catch::Counts::failedButOk = 0

Definition at line 25 of file catch_totals.h.

◆ passed

std::size_t Catch::Counts::passed = 0

Definition at line 23 of file catch_totals.h.


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