Jon Test
C++ Unit Test Tool. Not for production -- sample code only
Loading...
Searching...
No Matches
Count.h
Go to the documentation of this file.
1#ifndef JON_TEST_COUNT_H
2#define JON_TEST_COUNT_H
3
4namespace JonTest
5{
6
9class Count
10{
11public:
14 int count = 0;
15
18 int fails = 0;
19
22 inline Count&
24 const Count& right
25 )
26 {
27 count += right.count;
28 fails += right.fails;
29 return *this;
30 }
31};
32
33}
34#endif
Count of tests run, and fails.
Definition Count.h:10
Count & operator+=(const Count &right)
Add another Count into this one, as Count += right.
Definition Count.h:23
int fails
Number of tests that have failed.
Definition Count.h:18
int count
Number of tests that have been run.
Definition Count.h:14
Definition Count.h:5