Peano
Loading...
Searching...
No Matches
TestCase.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
7#include <string>
8
9
10namespace tarch {
11 namespace tests {
12 class TestCase;
13 }
14}
15
16
58 protected:
62 const std::string _testCaseName;
63
69
73 bool _error;
74
75 TestCase() = delete;
76
77 public:
83 TestCase( const std::string& testCaseName );
84
88 virtual ~TestCase();
89
93 int getNumberOfErrors() const;
94
95 std::string getTestCaseName() const;
96
100 virtual void run() = 0;
101};
102
Represents one test case.
Definition TestCase.h:57
int getNumberOfErrors() const
Definition TestCase.cpp:11
virtual ~TestCase()
Destructor.
Definition TestCase.cpp:9
bool _error
Indicate within macro if one specific validation failed.
Definition TestCase.h:73
virtual void run()=0
This routine is triggered by the TestCaseCollection.
int _errors
Error counter.
Definition TestCase.h:68
std::string getTestCaseName() const
Definition TestCase.cpp:15
const std::string _testCaseName
Name of the test case.
Definition TestCase.h:62
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19