Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:08

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 #ifndef CATCH_TOTALS_HPP_INCLUDED
0009 #define CATCH_TOTALS_HPP_INCLUDED
0010 
0011 #include <cstdint>
0012 
0013 namespace Catch {
0014 
0015     struct Counts {
0016         Counts operator - ( Counts const& other ) const;
0017         Counts& operator += ( Counts const& other );
0018 
0019         std::uint64_t total() const;
0020         bool allPassed() const;
0021         bool allOk() const;
0022 
0023         std::uint64_t passed = 0;
0024         std::uint64_t failed = 0;
0025         std::uint64_t failedButOk = 0;
0026         std::uint64_t skipped = 0;
0027     };
0028 
0029     struct Totals {
0030 
0031         Totals operator - ( Totals const& other ) const;
0032         Totals& operator += ( Totals const& other );
0033 
0034         Totals delta( Totals const& prevTotals ) const;
0035 
0036         Counts assertions;
0037         Counts testCases;
0038     };
0039 }
0040 
0041 #endif // CATCH_TOTALS_HPP_INCLUDED