Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
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
23namespace Teuchos {
24
25
27class TEUCHOSCORE_LIB_DLL_EXPORT UnitTestBase : public Describable {
28public:
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
42protected:
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
Base class for all objects that can describe themselves.
Smart reference counting pointer class for automatic garbage collection.
Unit test base class.
virtual void runUnitTestImpl(FancyOStream &out, bool &success) const =0
virtual long int unitTestFileLineNumber() const =0
virtual std::string unitTestFile() const =0
std::ostream subclass that performs the magic of indenting data sent to an std::ostream object among ...
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...