G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
11 namespace UnitTest
12 {
13 
14 class UNITTEST_LINKAGE DeferredTestFailure
15 {
16 public:
17  DeferredTestFailure();
18  DeferredTestFailure(int lineNumber_, const char* failureStr_);
19 
20  int lineNumber;
21  char failureStr[1024];
22 };
23 
24 }
25 
26 UNITTEST_STDVECTOR_LINKAGE(UnitTest::DeferredTestFailure);
27 
28 namespace UnitTest
29 {
30 
31 class UNITTEST_LINKAGE DeferredTestResult
32 {
33 public:
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