1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// *****************************************************************************
/*!
  \file      src/UnitTest/TUTTest.hpp
  \copyright 2012-2015 J. Bakosi,
             2016-2018 Los Alamos National Security, LLC.,
             2019-2021 Triad National Security, LLC.,
             2022-2025 J. Bakosi
             All rights reserved. See the LICENSE file for details.
  \brief     Template Unit Test unit test class declaration
  \details   Template Unit Test unit test class declaration.
*/
// *****************************************************************************
#ifndef TUTTest_h
#define TUTTest_h

#include <string><--- Include file:  not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <iosfwd><--- Include file:  not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include "NoWarning/tut.hpp"<--- Include file: "NoWarning/tut.hpp" not found.
#include "NoWarning/tuttest.decl.h"<--- Include file: "NoWarning/tuttest.decl.h" not found.

namespace unittest {

extern tut::test_runner_singleton g_runner;

//! \brief Generic Charm++ chare class for unit tests utilizing the Template
//!    Unit Test library
template< class Proxy >
class TUTTest : public CBase_TUTTest< Proxy > {

  public:
    //! Constructor: run test then call back to host proxy to evaluate it
    //! \param[in] proxy Host proxy to call back to after test has been run
    //! \param[in] groupname Name of the group the test belongs to
    //! \param[in] t Test number in test group
    explicit TUTTest( Proxy&& proxy, const std::string& groupname, int t ) {
      tut::test_result tr;
      g_runner.get().run_test( groupname, t, tr );
      proxy.evaluateTest( { tr.group, tr.name, std::to_string(tr.result),
                            tr.message, tr.exception_typeid } );
    }
};

} // unittest::

#define CK_TEMPLATES_ONLY
#include "NoWarning/tuttest.def.h"<--- Include file: "NoWarning/tuttest.def.h" not found.
#undef CK_TEMPLATES_ONLY

#endif // TUTTest_h