G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
DeferredTestResult.h
1#ifndef UNITTEST_DEFERREDTESTRESULT_H
2#define UNITTEST_DEFERREDTESTRESULT_H
3
4#include "Config.h"
5#ifndef UNITTEST_NO_DEFERRED_REPORTER
6
7#include "HelperMacros.h"
8#include <string>
9#include <vector>
10
11namespace UnitTest
12{
13
14class UNITTEST_LINKAGE DeferredTestFailure
15{
16public:
17 DeferredTestFailure();
18 DeferredTestFailure(int lineNumber_, const char* failureStr_);
19
20 int lineNumber;
21 char failureStr[1024];
22};
23
24}
25
26UNITTEST_STDVECTOR_LINKAGE(UnitTest::DeferredTestFailure);
27
28namespace UnitTest
29{
30
31class UNITTEST_LINKAGE DeferredTestResult
32{
33public:
34 DeferredTestResult();
35 DeferredTestResult(char const* suite, char const* test);
36 ~DeferredTestResult();
37
38 std::string suiteName;
39 std::string testName;
40 std::string failureFile;
41
42 typedef std::vector< DeferredTestFailure > FailureVec;
43 FailureVec failures;
44
45 float timeElapsed;
46 bool failed;
47};
48
49}
50
51#endif
52#endif