Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
daqdataformats::MilliSliceUnitTest Class Referenceabstract
Inheritance diagram for daqdataformats::MilliSliceUnitTest:
daqdataformats::RawDAQDataUnitTest

Public Member Functions

 MilliSliceUnitTest ()
 
 ~MilliSliceUnitTest ()
 
 DEFINE_checkDeepCopyConstructor (RawMilliSlice) DEFINE_checkShallowCopyConstructor(RawMilliSlice) void loopedcheckDeepCopyConstructor()
 
void loopedcheckShallowCopyConstructor ()
 
DEFINE_testReadDataIntoSameVersion void basicFieldGetAndSetChecks ()
 Check all field gets and sets for all versions. More...
 
virtual void checkDeepCopyConstructor ()
 Check Deep Copy Constructors for all versions. More...
 
virtual void checkShallowCopyConstructor ()
 Check Shallow Copy Constructors for all versions. More...
 
void setUp ()
 Some setup/teardown methods that Unittest require. More...
 
void tearDown ()
 

Protected Member Functions

virtual bool checkDeepCopyConstructor (const version_t) const =0
 Check constructors - deep copy and shallow copy. More...
 
virtual bool checkShallowCopyConstructor (const version_t) const =0
 
virtual void basicFieldGetAndSetChecksForGivenVersion (const version_t)
 Check all field gets and sets for a given version. More...
 
bool checkReadDataIntoSameVersion () const
 Check readData for all versions of the dataformat. More...
 
bool checkReadDataIntoUnknownVersion () const
 Check readData for all versions of the dataformat. More...
 
virtual DATAFORMAT_COMPARE_RESULTS compareDataFormats (const RawDAQData *, const RawDAQData *) const
 Are the two data formats the same? More...
 
virtual bool compareDataFormats (const RawDAQData *, const RawDAQData *, const DATAFORMAT_COMPARE_RESULTS) const
 
bool isPrintDataFormatUnknownVersion (const RawDAQData *) const
 Sometimes print() can print "DAQDataFormat is of unknown version". More...
 

Protected Attributes

RawDAQDataConstructor_dataFormatConstructor
 Pointer to RawDAQDataConstructor. More...
 

Private Member Functions

 CPPUNIT_TEST_SUITE (MilliSliceUnitTest)
 
 CPPUNIT_TEST (basicFieldGetAndSetChecks)
 
 CPPUNIT_TEST (loopedcheckDeepCopyConstructor)
 
 CPPUNIT_TEST (loopedcheckShallowCopyConstructor)
 
 CPPUNIT_TEST (testReadDataIntoSameVersion)
 
 CPPUNIT_TEST_SUITE_END ()
 
void testMilliSliceCRC (RawMilliSlice *)
 Check MilliSlice CRC. More...
 

Private Attributes

MilliSliceConstructor_mainDFConstructor
 

Detailed Description

Definition at line 16 of file MilliSliceUnitTest.cpp.

Constructor & Destructor Documentation

daqdataformats::MilliSliceUnitTest::MilliSliceUnitTest ( )

Definition at line 45 of file MilliSliceUnitTest.cpp.

45  :
46  RawDAQDataUnitTest(new MilliSliceConstructor())
47  ,_mainDFConstructor((MilliSliceConstructor*)_dataFormatConstructor)
48 {
49 }
RawDAQDataConstructor * _dataFormatConstructor
Pointer to RawDAQDataConstructor.
RawDAQDataUnitTest(RawDAQDataConstructor *)
MilliSliceConstructor * _mainDFConstructor
daqdataformats::MilliSliceUnitTest::~MilliSliceUnitTest ( )

Definition at line 52 of file MilliSliceUnitTest.cpp.

52 { }

Member Function Documentation

void daqdataformats::MilliSliceUnitTest::basicFieldGetAndSetChecks ( )
virtual

Check all field gets and sets for all versions.

Loop over nanoslices

Test filling of the MilliSlice

Testing CRC if the MilliSlice

Reimplemented from daqdataformats::RawDAQDataUnitTest.

Definition at line 55 of file MilliSliceUnitTest.cpp.

References daqdataformats::MicroSliceConstructor::_currentNanoSliceVersion, _mainDFConstructor, daqdataformats::MilliSliceConstructor::_microSliceConstructor, daqdataformats::RawMilliSlice::addMicroSlice(), daqdataformats::RawMilliSlice::close(), daqdataformats::RawDAQDataUnitTest::compareDataFormats(), daqdataformats::rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION, daqdataformats::DATAFORMATS_ARE_DIFFERENT, daqdataformats::FIRST_CONTAINS_SECOND, daqdataformats::RawDAQData::getBuffer(), daqdataformats::MilliSliceConstructor::getEmptyDataFormat(), daqdataformats::MilliSliceConstructor::getFilledDataFormat(), daqdataformats::MicroSliceConstructor::getFilledDataFormat(), daqdataformats::RawMilliSlice::getMicrosliceNumber(), daqdataformats::MilliSliceConstructor::getNanoSlicesVersion(), daqdataformats::RawMicroSlice::getTime(), daqdataformats::RawDAQDataUnitTest::isPrintDataFormatUnknownVersion(), daqdataformats::RawMilliSlice::setDiblockId(), daqdataformats::RawMilliSlice::setFrameSEQ(), daqdataformats::RawMilliSlice::setMicroSliceTimeLength_usec(), daqdataformats::RawMilliSlice::setMilliSliceSEQ(), daqdataformats::RawMilliSlice::setMonteCarloFlag(), daqdataformats::RawMilliSlice::setPartition(), daqdataformats::RawMicroSlice::setTime(), daqdataformats::RawMilliSlice::setTimeLength(), daqdataformats::RawMilliSlice::setTimeStartHigh(), daqdataformats::RawMilliSlice::setTimeStartLow(), daqdataformats::RawMilliSlice::sizeofdata(), daqdataformats::RawMicroSlice::sizeofdata(), and testMilliSliceCRC().

55  {
56 
57 
58  /// Loop over nanoslices
59  rawnano::NanoSliceConstructor nano_constructor;
60 
61  MicroSliceConstructor* micro_constructor = &(_mainDFConstructor->_microSliceConstructor);
62  for(micro_constructor->_currentNanoSliceVersion = 0; micro_constructor->_currentNanoSliceVersion <= nano_constructor.getMaximumVersion(); ++(micro_constructor->_currentNanoSliceVersion)){
63 
64  /// Test filling of the MilliSlice
65  {
66  daqdataformats::RawMilliSlice* millislice = new RawMilliSlice();
67 
68  millislice->setDiblockId(5);
69  millislice->setPartition(6);
70  millislice->setTimeStartLow(7);
71  millislice->setTimeStartHigh(8);
72  millislice->setTimeLength(9);
73  millislice->setMilliSliceSEQ(10);
74  millislice->setMicroSliceTimeLength_usec(11);
75  millislice->setMonteCarloFlag(true);
76  millislice->setFrameSEQ(12);
77 
80  micro2->setTime(micro2->getTime() + 500);
81  millislice->addMicroSlice(micro1->getBuffer());
82  millislice->addMicroSlice(micro2->getBuffer());
83  millislice->close(true);
84 
85  CPPUNIT_ASSERT(compareDataFormats(millislice, micro1) == FIRST_CONTAINS_SECOND);
86  CPPUNIT_ASSERT(compareDataFormats(millislice, micro2) == FIRST_CONTAINS_SECOND);
87 
88  CPPUNIT_ASSERT(millislice->getMicrosliceNumber() == 2 );
89 
90 
91  CPPUNIT_ASSERT(millislice->sizeofdata() - micro1->sizeofdata() - micro2->sizeofdata() < 30);
92 
93  CPPUNIT_ASSERT(!isPrintDataFormatUnknownVersion(millislice));
94 
95  /// Testing CRC if the MilliSlice
96  testMilliSliceCRC(millislice);
97 
98 
99  CPPUNIT_ASSERT(_mainDFConstructor->getNanoSlicesVersion(millislice) == micro_constructor->_currentNanoSliceVersion);
100 
101 
102  delete micro1;
103  delete micro2;
104  delete millislice;
105  }// end of test filling MilliSlice
106 
107 
109  testMilliSliceCRC(df0);
110  CPPUNIT_ASSERT(df0->sizeofdata() < 100);
111 
113  testMilliSliceCRC(df1);
114  CPPUNIT_ASSERT(df1->sizeofdata() < 100);
115 
116  CPPUNIT_ASSERT(compareDataFormats(df0, df1) == DATAFORMATS_ARE_DIFFERENT);
117 
118  CPPUNIT_ASSERT(!isPrintDataFormatUnknownVersion(df0));
119  CPPUNIT_ASSERT(!isPrintDataFormatUnknownVersion(df1));
120 
121  delete df0;
122  delete df1;
123  }// end of loop over nanoslices
124 
125 }
daqdataformats::RawDAQData * getFilledDataFormat(const version_t) const
bool setPartition(const uint32_t a)
Definition: RawMilliSlice.h:85
virtual DATAFORMAT_COMPARE_RESULTS compareDataFormats(const RawDAQData *, const RawDAQData *) const
Are the two data formats the same?
bool setFrameSEQ(const uint32_t a)
daqdataformats::RawDAQData * getFilledDataFormat(const daqdataformats::version_t) const
void testMilliSliceCRC(RawMilliSlice *)
Check MilliSlice CRC.
bool setMilliSliceSEQ(const uint32_t a)
Definition: RawMilliSlice.h:96
daqdataformats::RawDAQData * getEmptyDataFormat(const daqdataformats::version_t) const
method to create an empty dataformat with a given version
bool setMicroSliceTimeLength_usec(const uint32_t a)
Definition: RawMilliSlice.h:97
bool close(const bool produce_crc=false)
bool setDiblockId(const uint32_t a)
Definition: RawMilliSlice.h:80
bool setTimeStartLow(const uint32_t a)
Definition: RawMilliSlice.h:87
uint32_t getMicrosliceNumber() const
Definition: RawMilliSlice.h:63
bool setMonteCarloFlag(const bool a)
Definition: RawMilliSlice.h:98
bool setTimeLength(const uint32_t a)
Definition: RawMilliSlice.h:89
bool addMicroSlice(const void *microslice_buffer, const bool indexate=false, const bool check_mc_flag=false)
static const version_t DAQDATAFORMAT_UNKNOWN_VERSION
Definition: RawDAQData.h:81
uint32_t sizeofdata() const
Definition: RawMilliSlice.h:25
bool setTimeStartHigh(const uint32_t a)
Definition: RawMilliSlice.h:88
version_t getNanoSlicesVersion(const RawMilliSlice *) const
Gets the NanoSlices version in the MilliSlice.
MilliSliceConstructor * _mainDFConstructor
bool isPrintDataFormatUnknownVersion(const RawDAQData *) const
Sometimes print() can print "DAQDataFormat is of unknown version".
virtual void daqdataformats::RawDAQDataUnitTest::basicFieldGetAndSetChecksForGivenVersion ( const version_t  )
inlineprotectedvirtualinherited

Check all field gets and sets for a given version.

Reimplemented in daqdataformats::MicroBlockUnitTest.

Definition at line 132 of file RawDAQDataUnitTest.h.

References daqdataformats::RawDAQDataUnitTest::checkDeepCopyConstructor(), daqdataformats::RawDAQDataUnitTest::checkReadData(), daqdataformats::RawDAQDataUnitTest::checkReadDataIntoSameVersion(), daqdataformats::RawDAQDataUnitTest::checkReadDataIntoUnknownVersion(), daqdataformats::RawDAQDataUnitTest::checkShallowCopyConstructor(), daqdataformats::RawDAQDataUnitTest::compareDataFormats(), daqdataformats::RawDAQDataUnitTest::getDifferenceBetweenStrings(), daqdataformats::RawDAQDataUnitTest::isPrintDataFormatUnknownVersion(), daqdataformats::RawDAQDataUnitTest::resizeBufferToSizeOfDataFormats(), and string.

Referenced by daqdataformats::RawDAQDataUnitTest::basicFieldGetAndSetChecks(), daqdataformats::ConfigurationBlockUnitTest::~ConfigurationBlockUnitTest(), daqdataformats::ConfigurationHeaderUnitTest::~ConfigurationHeaderUnitTest(), daqdataformats::ConfigurationNameUnitTest::~ConfigurationNameUnitTest(), daqdataformats::ConfigurationSystemIDUnitTest::~ConfigurationSystemIDUnitTest(), daqdataformats::ConfigurationTailUnitTest::~ConfigurationTailUnitTest(), daqdataformats::DataBlockHeaderUnitTest::~DataBlockHeaderUnitTest(), daqdataformats::DataBlockUnitTest::~DataBlockUnitTest(), daqdataformats::EventHeaderUnitTest::~EventHeaderUnitTest(), daqdataformats::EventTailUnitTest::~EventTailUnitTest(), daqdataformats::EventUnitTest::~EventUnitTest(), daqdataformats::MicroBlockHeaderUnitTest::~MicroBlockHeaderUnitTest(), daqdataformats::NanoSliceHeaderUnitTest::~NanoSliceHeaderUnitTest(), daqdataformats::NanoSliceUnitTest::~NanoSliceUnitTest(), daqdataformats::RunHeaderUnitTest::~RunHeaderUnitTest(), daqdataformats::TriggerHeaderUnitTest::~TriggerHeaderUnitTest(), daqdataformats::TriggerMaskUnitTest::~TriggerMaskUnitTest(), daqdataformats::TriggerRangeUnitTest::~TriggerRangeUnitTest(), daqdataformats::TriggerTimeUnitTest::~TriggerTimeUnitTest(), daqdataformats::TriggerTimingMarkerUnitTest::~TriggerTimingMarkerUnitTest(), and daqdataformats::TriggerUnitTest::~TriggerUnitTest().

132 {};
virtual void daqdataformats::RawDAQDataUnitTest::checkDeepCopyConstructor ( )
inlinevirtualinherited
virtual bool daqdataformats::RawDAQDataUnitTest::checkDeepCopyConstructor ( const version_t  ) const
protectedpure virtualinherited

Check constructors - deep copy and shallow copy.

bool daqdataformats::RawDAQDataUnitTest::checkReadDataIntoSameVersion ( ) const
protectedinherited

Check readData for all versions of the dataformat.

Definition at line 32 of file RawDAQDataUnitTest.cpp.

References allTimeWatchdog::endl, LOG_DEBUG, and VERSION_LOOP_iver.

Referenced by daqdataformats::RawDAQDataUnitTest::basicFieldGetAndSetChecksForGivenVersion().

32  {
34  LOG_DEBUG("UNITTEST")<<"checkReadDataIntoSameVersion for version "<<iver<<std::endl;
35  if(!checkReadDataIntoSameVersion(iver)) return false;
36  )
37  return true;
38 }
#define LOG_DEBUG(stream)
Definition: Messenger.h:149
#define VERSION_LOOP_iver(ACTION)
Perform some action that depends on iver.
bool checkReadDataIntoSameVersion() const
Check readData for all versions of the dataformat.
bool daqdataformats::RawDAQDataUnitTest::checkReadDataIntoUnknownVersion ( ) const
protectedinherited

Check readData for all versions of the dataformat.

Definition at line 41 of file RawDAQDataUnitTest.cpp.

References allTimeWatchdog::endl, LOG_DEBUG, and VERSION_LOOP_iver.

Referenced by daqdataformats::RawDAQDataUnitTest::basicFieldGetAndSetChecksForGivenVersion().

41  {
42 
44  LOG_DEBUG("UNITTEST")<<"checkReadDataIntoUnknownVersion for version "<<iver<<std::endl;
46  return false;
47  )
48 
49  return true;
50 }
#define LOG_DEBUG(stream)
Definition: Messenger.h:149
bool checkReadDataIntoUnknownVersion() const
Check readData for all versions of the dataformat.
#define VERSION_LOOP_iver(ACTION)
Perform some action that depends on iver.
virtual void daqdataformats::RawDAQDataUnitTest::checkShallowCopyConstructor ( )
inlinevirtualinherited
virtual bool daqdataformats::RawDAQDataUnitTest::checkShallowCopyConstructor ( const version_t  ) const
protectedpure virtualinherited
DATAFORMAT_COMPARE_RESULTS daqdataformats::RawDAQDataUnitTest::compareDataFormats ( const RawDAQData format1,
const RawDAQData format2 
) const
protectedvirtualinherited

Are the two data formats the same?

Print the first input dataformat into a string

Print the first input dataformat into a string

Compare the two strings and see if they are the same

See if first string contains second

See if second string contains first

Definition at line 227 of file RawDAQDataUnitTest.cpp.

References daqdataformats::DATAFORMATS_ARE_DIFFERENT, daqdataformats::DATAFORMATS_ARE_THE_SAME, daqdataformats::FIRST_CONTAINS_SECOND, daqdataformats::RawDAQData::print(), daqdataformats::SECOND_CONTAINS_FIRST, and string.

Referenced by daqdataformats::MicroSliceUnitTest::basicFieldGetAndSetChecks(), basicFieldGetAndSetChecks(), daqdataformats::RawDAQDataUnitTest::basicFieldGetAndSetChecksForGivenVersion(), daqdataformats::RawDAQDataUnitTest::checkReadData(), daqdataformats::ConfigurationBlockUnitTest::~ConfigurationBlockUnitTest(), daqdataformats::DataBlockUnitTest::~DataBlockUnitTest(), daqdataformats::EventUnitTest::~EventUnitTest(), daqdataformats::NanoSliceUnitTest::~NanoSliceUnitTest(), and daqdataformats::TriggerUnitTest::~TriggerUnitTest().

228 {
229  /// Print the first input dataformat into a string
230  std::string string1;
231  format1->print(string1);
232 
233  /// Print the first input dataformat into a string
234  std::string string2;
235  format2->print(string2);
236 
237  /// Compare the two strings and see if they are the same
238  if(string1.compare(string2) == 0) return DATAFORMATS_ARE_THE_SAME;
239 
240  /// See if first string contains second
241  if(string1.find(string2) != std::string::npos) return FIRST_CONTAINS_SECOND;
242 
243  /// See if second string contains first
244  if(string2.find(string1) != std::string::npos) return SECOND_CONTAINS_FIRST;
245 
247 }
enum BeamMode string
bool daqdataformats::RawDAQDataUnitTest::compareDataFormats ( const RawDAQData format1,
const RawDAQData format2,
const DATAFORMAT_COMPARE_RESULTS  what_it_should_be 
) const
protectedvirtualinherited

Print the first input dataformat into a string

Print the first input dataformat into a string

Compare the two strings and see if they are the same

Definition at line 250 of file RawDAQDataUnitTest.cpp.

References daqdataformats::DATAFORMATS_ARE_DIFFERENT, daqdataformats::DATAFORMATS_ARE_THE_SAME, daqdataformats::FIRST_CONTAINS_SECOND, daqdataformats::RawDAQDataUnitTest::getDifferenceBetweenStrings(), daqdataformats::getNameForResults(), LOG_ERROR, daqdataformats::RawDAQData::print(), fillBadChanDBTables::result, daqdataformats::SECOND_CONTAINS_FIRST, and string.

254 {
255 
256  /// Print the first input dataformat into a string
257  std::string string1;
258  format1->print(string1);
259 
260  /// Print the first input dataformat into a string
261  std::string string2;
262  format2->print(string2);
263 
264 
266 
267  /// Compare the two strings and see if they are the same
268  if (string1.compare(string2) == 0) result = DATAFORMATS_ARE_THE_SAME;
269  else if(string1.find(string2) != std::string::npos) result = FIRST_CONTAINS_SECOND;
270  else if(string2.find(string1) != std::string::npos) result = SECOND_CONTAINS_FIRST;
271 
272 
273  if(result != what_it_should_be){
274  LOG_ERROR("UNITTEST")<<"Failure in "<<__PRETTY_FUNCTION__<<" at "<<__LINE__<<". "
275  <<"Formats should be "<<daqdataformats::getNameForResults(what_it_should_be)
276  <<". But they are " <<daqdataformats::getNameForResults(result)
277  <<"\nFirst format:"<<string1
278  <<"\nSecond format:"<<string2
279  <<"\n Difference:\n"
280  <<getDifferenceBetweenStrings(string1, string2);
281  return false;
282  }// end of checking if the dataformats are the same
283 
284  return(result == what_it_should_be);
285 }
std::string getNameForResults(const DATAFORMAT_COMPARE_RESULTS res)
DATAFORMAT_COMPARE_RESULTS
Enumeration of the two dataformat comparisson results.
std::string getDifferenceBetweenStrings(const std::string, const std::string) const
#define LOG_ERROR(stream)
Definition: Messenger.h:129
enum BeamMode string
daqdataformats::MilliSliceUnitTest::CPPUNIT_TEST ( basicFieldGetAndSetChecks  )
private
daqdataformats::MilliSliceUnitTest::CPPUNIT_TEST ( loopedcheckDeepCopyConstructor  )
private
daqdataformats::MilliSliceUnitTest::CPPUNIT_TEST ( loopedcheckShallowCopyConstructor  )
private
daqdataformats::MilliSliceUnitTest::CPPUNIT_TEST ( testReadDataIntoSameVersion  )
private
daqdataformats::MilliSliceUnitTest::CPPUNIT_TEST_SUITE ( MilliSliceUnitTest  )
private
daqdataformats::MilliSliceUnitTest::CPPUNIT_TEST_SUITE_END ( )
private
daqdataformats::MilliSliceUnitTest::DEFINE_checkDeepCopyConstructor ( RawMilliSlice  )
bool daqdataformats::RawDAQDataUnitTest::isPrintDataFormatUnknownVersion ( const RawDAQData df) const
protectedinherited

Sometimes print() can print "DAQDataFormat is of unknown version".

Print the first input dataformat into a string

See if first string contains second

Definition at line 291 of file RawDAQDataUnitTest.cpp.

References daqdataformats::RawDAQData::print(), and string.

Referenced by basicFieldGetAndSetChecks(), daqdataformats::RawDAQDataUnitTest::basicFieldGetAndSetChecksForGivenVersion(), and daqdataformats::RawDAQDataUnitTest::checkReadData().

291  {
292 
293  /// Print the first input dataformat into a string
294  std::string string1;
295  df->print(string1);
296 
297  /// See if first string contains second
298  if(string1.find("DAQDataFormat is of unknown version") != std::string::npos) return true;
299 
300  return false;
301 }
enum BeamMode string
void daqdataformats::MilliSliceUnitTest::loopedcheckShallowCopyConstructor ( )

Definition at line 151 of file MilliSliceUnitTest.cpp.

References daqdataformats::MicroSliceConstructor::_currentNanoSliceVersion, _mainDFConstructor, daqdataformats::MilliSliceConstructor::_microSliceConstructor, daqdataformats::RawDAQDataUnitTest::checkShallowCopyConstructor(), daqdataformats::CPPUNIT_REGISTRY_ADD_TO_DEFAULT(), daqdataformats::CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(), allTimeWatchdog::endl, and LOG_DEBUG.

151  {
152 
153  rawnano::NanoSliceConstructor nano_constructor;
154 
155  MicroSliceConstructor* micro_constructor = &(_mainDFConstructor->_microSliceConstructor);
156 
157  for(micro_constructor->_currentNanoSliceVersion = 0; micro_constructor->_currentNanoSliceVersion <= nano_constructor.getMaximumVersion(); ++(micro_constructor->_currentNanoSliceVersion)){
158  LOG_DEBUG("UNITTEST")<< "From "<<__PRETTY_FUNCTION__<<". Checking Nano version "<<micro_constructor->_currentNanoSliceVersion<<std::endl;
160  }
161 
162 }
#define LOG_DEBUG(stream)
Definition: Messenger.h:149
virtual void checkShallowCopyConstructor()
Check Shallow Copy Constructors for all versions.
MilliSliceConstructor * _mainDFConstructor
void daqdataformats::RawDAQDataUnitTest::setUp ( )
inlineinherited

Some setup/teardown methods that Unittest require.

Definition at line 126 of file RawDAQDataUnitTest.h.

126 {}
void daqdataformats::RawDAQDataUnitTest::tearDown ( )
inlineinherited

Definition at line 127 of file RawDAQDataUnitTest.h.

127 {}
void daqdataformats::MilliSliceUnitTest::testMilliSliceCRC ( RawMilliSlice millislice)
private

Check MilliSlice CRC.

Definition at line 129 of file MilliSliceUnitTest.cpp.

References daqdataformats::MicroSliceConstructor::_currentNanoSliceVersion, _mainDFConstructor, daqdataformats::MilliSliceConstructor::_microSliceConstructor, daqdataformats::RawDAQData::calculateCheckSum(), daqdataformats::RawDAQDataUnitTest::checkDeepCopyConstructor(), allTimeWatchdog::endl, daqdataformats::RawMilliSlice::getCRC(), daqdataformats::RawMilliSlice::isCRCCalculationUsed(), and LOG_DEBUG.

Referenced by basicFieldGetAndSetChecks().

129  {
130  CPPUNIT_ASSERT(millislice->isCRCCalculationUsed());
131  CPPUNIT_ASSERT(millislice->getCRC() > 0);
132  CPPUNIT_ASSERT(millislice->calculateCheckSum(0) == 0);
133 }

Member Data Documentation

RawDAQDataConstructor* daqdataformats::RawDAQDataUnitTest::_dataFormatConstructor
protectedinherited
MilliSliceConstructor* daqdataformats::MilliSliceUnitTest::_mainDFConstructor
private

The documentation for this class was generated from the following file: