Chebyshev
Unit testing for scientific software
Loading...
Searching...
No Matches
err_structures.h
Go to the documentation of this file.
1
5
6#ifndef CHEBYSHEV_ERR_STRUCTURES_H
7#define CHEBYSHEV_ERR_STRUCTURES_H
8
9#include <string>
10#include <vector>
11#include <map>
12
13
14namespace chebyshev {
15
16 namespace err {
17
18
22
24 std::string name = "unknown";
25
27 bool evaluated = false;
28
30 std::string description = "";
31
33 bool failed = true;
34
36 bool quiet = false;
37 };
38
39
42 struct errno_result {
43
45 std::string name = "unknown";
46
49
51 std::vector<int> expectedFlags;
52
54 bool failed = true;
55
57 bool quiet = false;
58 };
59
60
64
66 std::string name = "unknown";
67
69 bool thrown = false;
70
73 bool correctType = true;
74
76 bool failed = true;
77
79 bool quiet = false;
80 };
81
82 }
83}
84
85#endif
General namespace of the framework.
Definition benchmark.h:22
Result of assertion checking of a function.
Definition err_structures.h:21
std::string name
Identifying name of the function or test case.
Definition err_structures.h:24
bool evaluated
Evaluated boolean value.
Definition err_structures.h:27
bool quiet
Whether to print to standard output or not.
Definition err_structures.h:36
bool failed
Whether the test failed.
Definition err_structures.h:33
std::string description
Description of the assertion.
Definition err_structures.h:30
Result of errno checking of a function.
Definition err_structures.h:42
int evaluated
Evaluated errno value.
Definition err_structures.h:48
std::string name
Identifying name of the function or test case.
Definition err_structures.h:45
std::vector< int > expectedFlags
Expected errno flags.
Definition err_structures.h:51
bool quiet
Whether to print to standard output or not.
Definition err_structures.h:57
bool failed
Whether the test failed.
Definition err_structures.h:54
Result of exception checking of a function.
Definition err_structures.h:63
bool thrown
Whether the function has thrown.
Definition err_structures.h:69
std::string name
Identifying name of the function or test case.
Definition err_structures.h:66
bool correctType
Whether the type of the thrown exception was correct.
Definition err_structures.h:73
bool quiet
Whether to print to standard output or not.
Definition err_structures.h:79
bool failed
Whether the test failed.
Definition err_structures.h:76