10#include "gtest/gtest-spi.h"
11#include "gtest/gtest.h"
35TEST(_GTestCbmHit, CheckDefaultConstructor)
41TEST(_GTestCbmHit, CheckStandardConstructor)
47TEST(_GTestCbmHit, CheckStandardConstructorWithTime)
53TEST(_GTestCbmHit, CheckCopyConstructor)
57 SCOPED_TRACE(
"CheckCopyConstructor: Initial Test");
67 SCOPED_TRACE(
"CheckCopyConstructor: Test with CbmMatch");
75 CbmMatch* testMatch1 = test2.GetMatch();
77 EXPECT_EQ(
nullptr, testMatch1);
81 SCOPED_TRACE(
"CheckCopyConstructor: Test new object after copy construction");
86 SCOPED_TRACE(
"CheckCopyConstructor: Test original object after copy construction");
92TEST(_GTestCbmHit, CheckAssignmentOperator)
96 SCOPED_TRACE(
"CheckAssignmentOperator: Initial Test");
106 SCOPED_TRACE(
"CheckAssignmentOperator: Test with CbmMatch");
117 EXPECT_EQ(
nullptr, testMatch1);
121 SCOPED_TRACE(
"CheckAssignmentOperator: Test new object after assignment");
126 SCOPED_TRACE(
"CheckAssignmentOperator: Test original object after assignment");
131TEST(_GTestCbmHit, TestSettersAndGetters)
158 EXPECT_EQ(-1, retValInt);
175 EXPECT_STREQ(
"Has to be implemented in derrived class", test.ToString().c_str());
TEST(_GTestCbmHit, CheckDefaultConstructor)
void SetTimeError(double error)
void SetMatch(CbmMatch *match)
void SetAddress(int32_t address)
CbmHit & operator=(const CbmHit &)
virtual int32_t GetPlaneId() const
void SetRefId(int32_t refId)
void SetTime(double time)
CbmMatch * GetMatch() const
CbmTestHit(const CbmTestHit &hit)
CbmTestHit & operator=(const CbmTestHit &other)
void compareHitDataMembers(CbmHit &test, HitType type, double z, double dz, int32_t refid, int32_t address, CbmMatch *match, double time, double errortime)
void compareMatchDataMembers(CbmMatch &testMatch, int32_t noflinks, double weight)