Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_UnitTestBase.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Teuchos: Common Tools Package
4 //
5 // Copyright 2004 NTESS and the Teuchos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef TEUCHOS_UNIT_TEST_BASE_HPP
11 #define TEUCHOS_UNIT_TEST_BASE_HPP
12 
13 
19 #include "Teuchos_Describable.hpp"
20 #include "Teuchos_FancyOStream.hpp"
21 
22 
23 namespace Teuchos {
24 
25 
28 public:
29 
31  UnitTestBase(const std::string groupName, std::string testName);
32 
34  bool runUnitTest(FancyOStream &out) const;
35 
37  virtual std::string unitTestFile() const = 0;
38 
40  virtual long int unitTestFileLineNumber() const = 0;
41 
42 protected:
43 
45  virtual void runUnitTestImpl(FancyOStream &out, bool &success) const = 0;
46 
47 };
48 
49 
50 } // namespace Teuchos
51 
52 
53 #endif // TEUCHOS_UNIT_TEST_BASE_HPP
#define TEUCHOSCORE_LIB_DLL_EXPORT
std::ostream subclass that performs the magic of indenting data sent to an std::ostream object among ...
Base class for all objects that can describe themselves.
Unit test base class.