3 #include "gtest/gtest-spi.h"
4 #include "gtest/gtest.h"
8 TEST(_GTestCbmMuchBeamTimeDigi, CheckDefaultConstructor) {
13 test, 0,
ECbmModuleId::kMuch, 0, 0, -1, -1, -1, -1, -1, -1);
18 *test1, 0,
ECbmModuleId::kMuch, 0, 0, -1, -1, -1, -1, -1, -1);
22 TEST(_GTestCbmMuchBeamTimeDigi, CheckStandardConstructor) {
27 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
32 *test1, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
35 TEST(_GTestCbmMuchBeamTimeDigi, CheckCopyConstructor) {
40 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
49 test2, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
53 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
56 TEST(_GTestCbmMuchBeamTimeDigi, CheckAssignmentOperator) {
62 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
71 test2, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
76 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
79 TEST(_GTestCbmMuchBeamTimeDigi, CheckMoveConstructor) {
84 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
90 test2, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
93 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
96 TEST(_GTestCbmMuchBeamTimeDigi, CheckAssignmentMoveConstructor) {
101 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
104 test2 = std::move(test);
107 test2, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
111 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
115 TEST(_GTestCbmMuchBeamTimeDigi, CheckToString) {
120 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
122 EXPECT_STREQ(
"", test.
ToString().c_str());
125 TEST(_GTestCbmMuchBeamTimeDigi, CheckGetClassName) {
130 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
132 EXPECT_STREQ(
"CbmMuchBeamTimeDigi", test.
GetClassName());
136 TEST(_GTestCbmMuchDigi, CheckSetPadX) {
141 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
146 test, 111,
ECbmModuleId::kMuch, 987654321, 23, 12, -1, -1, -1, -1, -1);
150 TEST(_GTestCbmMuchDigi, CheckSetPadY) {
155 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
160 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, 13, -1, -1, -1, -1);
164 TEST(_GTestCbmMuchDigi, CheckSetRocId) {
169 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
174 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, 14, -1, -1, -1);
177 TEST(_GTestCbmMuchDigi, CheckSetNxId) {
182 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
187 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, 15, -1, -1);
190 TEST(_GTestCbmMuchDigi, CheckSetNxCh) {
195 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
200 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, 16, -1);
203 TEST(_GTestCbmMuchDigi, CheckSetElink) {
208 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, -1);
213 test, 111,
ECbmModuleId::kMuch, 987654321, 23, -1, -1, -1, -1, -1, 17);