5 #include <gtest/gtest-spi.h>
6 #include <gtest/gtest.h>
10 TEST(_GTestCbmStripHit, CheckDefaultConstructor) {
13 SCOPED_TRACE(
"CheckDefaultConstructor");
15 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., 0., 0., 0., 0.);
19 TEST(_GTestCbmStripHit, CheckStandardConstructor) {
22 SCOPED_TRACE(
"CheckStandardConstructor");
24 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., 0., 0., 0., 0.);
28 TEST(_GTestCbmStripHit, CheckStandardConstructorWithTime) {
29 CbmStripHit test {-1, 0., 0., 0., 0., 0., 0., -1, -2., -2.};
31 SCOPED_TRACE(
"CheckStandardConstructorWithTime");
33 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -2., -2., 0., 0., 0., 0.);
37 TEST(_GTestCbmStripHit, CheckStandardConstructorTVector3) {
50 SCOPED_TRACE(
"CheckStandardConstructor");
52 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., 0., 0., 0., 0.);
56 TEST(_GTestCbmStripHit, CheckStandardConstructorTVector3WithTime) {
69 SCOPED_TRACE(
"CheckStandardConstructorWithTime");
71 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -2., -2., 0., 0., 0., 0.);
75 TEST(_GTestCbmStripHit, CheckSetters) {
78 SCOPED_TRACE(
"CheckSetters: Initial Test");
80 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., 0., 0., 0., 0.);
85 SCOPED_TRACE(
"CheckSetters: SetU");
87 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., -11., 0., 0., 0.);
92 SCOPED_TRACE(
"CheckSetters: SetDu");
94 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., -11., -12., 0., 0.);
99 SCOPED_TRACE(
"CheckSetters: SetPhi");
101 test,
kSTRIPHIT, 0., 0., -1, -1,
nullptr, -1., -1., -11., -12., -13., 0.);
106 SCOPED_TRACE(
"CheckSetters: SetDphi");
123 TEST(_GTestCbmMatch, CheckToString) {
125 EXPECT_STREQ(
"CbmStripHit: address=-1 pos=(0,0,0) err=(0,0,0) refId=-1\n",