Project
Loading...
Searching...
No Matches
testSampaHeader.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "MCHRawCommon/SampaHeader.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test MCHRaw SampaHeader
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (SampaHeaderCtorBunchCrossingCounter)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderCtorNof10BitsWords)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderEqualityOperators)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetHamming)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetHeaderParity)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetPacketType)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetNumberOf10BitsWords)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetChipAddress)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetChannelAddress)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetBunchCrossingCounter)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderSetPayloadParity)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderLessThanOperatorComparesBx)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderCtorWithMoreThan50BitsShouldThrow)
 
 BOOST_AUTO_TEST_CASE (SampaHeaderCtorWithInvalidBitsIsNotAHeartbeat)
 
 BOOST_AUTO_TEST_CASE (CheckSampaSyncIsExpectedValue)
 
 BOOST_AUTO_TEST_CASE (SetChannelAddressTwice)
 
 BOOST_AUTO_TEST_CASE (ComputeHammingCode)
 
 BOOST_AUTO_TEST_CASE (ComputeHammingCode2)
 
 BOOST_AUTO_TEST_CASE (ComputeHammingCode3)
 
 BOOST_AUTO_TEST_CASE (ComputeHammingCode4)
 
 BOOST_AUTO_TEST_CASE (CheckHammingCodeError)
 
 BOOST_AUTO_TEST_CASE (CheckHeaderParity)
 
 BOOST_AUTO_TEST_CASE (CheckHeaderParity2)
 
 BOOST_AUTO_TEST_CASE (CheckHeaderParity3)
 
 BOOST_AUTO_TEST_CASE (CheckHeaderParity4)
 
 BOOST_AUTO_TEST_CASE (CreateHearbeat)
 

Variables

uint64_t allones = 0x3FFFFFFFFFFFF
 
uint64_t allbutbx = 0x200001FFFFFFF
 
uint64_t allbut10bits = 0x3FFFFFFF003FF
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 17 of file testSampaHeader.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 16 of file testSampaHeader.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHRaw SampaHeader
Author
Laurent Aphecetche

Definition at line 15 of file testSampaHeader.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/26]

BOOST_AUTO_TEST_CASE ( CheckHammingCodeError  )

Definition at line 236 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/26]

BOOST_AUTO_TEST_CASE ( CheckHeaderParity  )

Definition at line 251 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/26]

BOOST_AUTO_TEST_CASE ( CheckHeaderParity2  )

Definition at line 258 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/26]

BOOST_AUTO_TEST_CASE ( CheckHeaderParity3  )

Definition at line 265 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/26]

BOOST_AUTO_TEST_CASE ( CheckHeaderParity4  )

Definition at line 272 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/26]

BOOST_AUTO_TEST_CASE ( CheckSampaSyncIsExpectedValue  )

Definition at line 189 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/26]

BOOST_AUTO_TEST_CASE ( ComputeHammingCode  )

Definition at line 208 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/26]

BOOST_AUTO_TEST_CASE ( ComputeHammingCode2  )

Definition at line 215 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/26]

BOOST_AUTO_TEST_CASE ( ComputeHammingCode3  )

Definition at line 222 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/26]

BOOST_AUTO_TEST_CASE ( ComputeHammingCode4  )

Definition at line 229 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [11/26]

BOOST_AUTO_TEST_CASE ( CreateHearbeat  )

Definition at line 279 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [12/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderCtorBunchCrossingCounter  )

Definition at line 32 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [13/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderCtorNof10BitsWords  )

Definition at line 45 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [14/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderCtorWithInvalidBitsIsNotAHeartbeat  )

Definition at line 164 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [15/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderCtorWithMoreThan50BitsShouldThrow  )

Definition at line 159 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [16/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderEqualityOperators  )

Definition at line 58 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [17/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderLessThanOperatorComparesBx  )

Definition at line 141 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [18/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetBunchCrossingCounter  )

Definition at line 125 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [19/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetChannelAddress  )

Definition at line 117 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [20/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetChipAddress  )

Definition at line 105 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [21/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetHamming  )

Definition at line 71 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [22/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetHeaderParity  )

Definition at line 79 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [23/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetNumberOf10BitsWords  )

Definition at line 95 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [24/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetPacketType  )

Definition at line 87 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [25/26]

BOOST_AUTO_TEST_CASE ( SampaHeaderSetPayloadParity  )

Definition at line 133 of file testSampaHeader.cxx.

◆ BOOST_AUTO_TEST_CASE() [26/26]

BOOST_AUTO_TEST_CASE ( SetChannelAddressTwice  )

Definition at line 195 of file testSampaHeader.cxx.

Variable Documentation

◆ allbut10bits

uint64_t allbut10bits = 0x3FFFFFFF003FF

Definition at line 26 of file testSampaHeader.cxx.

◆ allbutbx

uint64_t allbutbx = 0x200001FFFFFFF

Definition at line 25 of file testSampaHeader.cxx.

◆ allones

uint64_t allones = 0x3FFFFFFFFFFFF

Definition at line 24 of file testSampaHeader.cxx.