/
ExpressionOOChecks_Tests.cpp
121 lines (95 loc) · 2.52 KB
/
ExpressionOOChecks_Tests.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#include "gtest/gtest.h"
#include "TestFlowFunctions.h"
extern "C"
{
#include "Vdm.h"
#include <stdio.h>
#include "ExpressionOOChecks.h"
}
#define CHECK(methodId) ExpressionOOChecks_const_init();\
TVP c = _Z18ExpressionOOChecksEV(NULL);\
TVP res=CALL_FUNC(ExpressionOOChecks,ExpressionOOChecks,c,methodId);\
EXPECT_EQ (true,res->value.boolVal);\
vdmFree(res);\
vdmFree(c);\
ExpressionOOChecks_const_shutdown();
// isofbaseclass tests
TEST_F(TestFlowFunctions, isofbaseclass_First)
{
CHECK(CLASS_ExpressionOOChecks__Z19isofbaseclass_FirstEV);
}
TEST_F(TestFlowFunctions, isofbaseclass_Second)
{
CHECK(CLASS_ExpressionOOChecks__Z20isofbaseclass_SecondEV);
}
TEST_F(TestFlowFunctions, isofbaseclass_Third)
{
CHECK(CLASS_ExpressionOOChecks__Z19isofbaseclass_ThirdEV);
}
TEST_F(TestFlowFunctions, isofbaseclass_Fourth)
{
CHECK(CLASS_ExpressionOOChecks__Z20isofbaseclass_FourthEV);
}
TEST_F(TestFlowFunctions, isofbaseclass_Fifth)
{
CHECK(CLASS_ExpressionOOChecks__Z19isofbaseclass_FifthEV);
}
// isofclass tests
TEST_F(TestFlowFunctions, isofclass_First)
{
CHECK(CLASS_ExpressionOOChecks__Z15isofclass_FirstEV);
}
TEST_F(TestFlowFunctions, isofclass_Second)
{
CHECK(CLASS_ExpressionOOChecks__Z16isofclass_SecondEV);
}
TEST_F(TestFlowFunctions, isofclass_Third)
{
CHECK(CLASS_ExpressionOOChecks__Z15isofclass_ThirdEV);
}
TEST_F(TestFlowFunctions, isofclass_Fourth)
{
CHECK(CLASS_ExpressionOOChecks__Z16isofclass_FourthEV);
}
TEST_F(TestFlowFunctions, isofclass_Fifth)
{
CHECK(CLASS_ExpressionOOChecks__Z15isofclass_FifthEV);
}
TEST_F(TestFlowFunctions, isofclass_Sixth)
{
CHECK(CLASS_ExpressionOOChecks__Z15isofclass_SixthEV);
}
// samebaseclass
TEST_F(TestFlowFunctions, samebaseclass_First)
{
CHECK(CLASS_ExpressionOOChecks__Z19samebaseclass_FirstEV);
}
TEST_F(TestFlowFunctions, samebaseclass_Second)
{
CHECK(CLASS_ExpressionOOChecks__Z20samebaseclass_SecondEV);
}
TEST_F(TestFlowFunctions, samebaseclass_Third)
{
CHECK(CLASS_ExpressionOOChecks__Z19samebaseclass_ThirdEV);
}
TEST_F(TestFlowFunctions, samebaseclass_Fourth)
{
CHECK(CLASS_ExpressionOOChecks__Z20samebaseclass_FourthEV);
}
TEST_F(TestFlowFunctions, samebaseclass_Fifth)
{
CHECK(CLASS_ExpressionOOChecks__Z19samebaseclass_FifthEV);
}
// sameclass
TEST_F(TestFlowFunctions, sameclass_First)
{
CHECK(CLASS_ExpressionOOChecks__Z15sameclass_FirstEV);
}
TEST_F(TestFlowFunctions, sameclass_Second)
{
CHECK(CLASS_ExpressionOOChecks__Z16sameclass_SecondEV);
}
TEST_F(TestFlowFunctions, sameclass_Third)
{
CHECK(CLASS_ExpressionOOChecks__Z15sameclass_ThirdEV);
}