Project
Loading...
Searching...
No Matches
testGBTEncoder.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "BareElinkEncoder.h"
#include "UserLogicElinkEncoder.h"
#include "BareElinkEncoderMerger.h"
#include "UserLogicElinkEncoderMerger.h"
#include <array>
#include <fmt/printf.h>
#include <boost/mpl/list.hpp>
#include "GBTEncoder.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test MCHRaw GBTEncoder
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Typedefs

typedef boost::mpl::list< BareFormat, UserLogicFormattestTypes
 

Functions

template<typename FORMAT , typename CHARGESUM >
float expectedSize ()
 
template<>
float expectedSize< BareFormat, ChargeSumMode > ()
 
template<>
float expectedSize< UserLogicFormat, ChargeSumMode > ()
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (GBTEncoderAddFewChannels, T, testTypes)
 
template<typename FORMAT , typename CHARGESUM >
float expectedMaxSize ()
 
template<>
float expectedMaxSize< BareFormat, ChargeSumMode > ()
 
template<>
float expectedMaxSize< UserLogicFormat, ChargeSumMode > ()
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (GBTEncoderAdd64Channels, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (GBTEncoderMoveToBufferClearsTheInternalBuffer, T, testTypes)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 14 of file testGBTEncoder.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 13 of file testGBTEncoder.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHRaw GBTEncoder

Definition at line 12 of file testGBTEncoder.cxx.

Typedef Documentation

◆ testTypes

typedef boost::mpl::list<BareFormat, UserLogicFormat> testTypes

Definition at line 33 of file testGBTEncoder.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( GBTEncoderAdd64Channels  ,
,
testTypes   
)

Definition at line 86 of file testGBTEncoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( GBTEncoderAddFewChannels  ,
,
testTypes   
)

Definition at line 50 of file testGBTEncoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( GBTEncoderMoveToBufferClearsTheInternalBuffer  ,
,
testTypes   
)

Definition at line 104 of file testGBTEncoder.cxx.

◆ expectedMaxSize()

template<typename FORMAT , typename CHARGESUM >
float expectedMaxSize ( )

◆ expectedMaxSize< BareFormat, ChargeSumMode >()

template<>
float expectedMaxSize< BareFormat, ChargeSumMode > ( )

Definition at line 75 of file testGBTEncoder.cxx.

◆ expectedMaxSize< UserLogicFormat, ChargeSumMode >()

template<>
float expectedMaxSize< UserLogicFormat, ChargeSumMode > ( )

Definition at line 81 of file testGBTEncoder.cxx.

◆ expectedSize()

template<typename FORMAT , typename CHARGESUM >
float expectedSize ( )

◆ expectedSize< BareFormat, ChargeSumMode >()

template<>
float expectedSize< BareFormat, ChargeSumMode > ( )

Definition at line 39 of file testGBTEncoder.cxx.

◆ expectedSize< UserLogicFormat, ChargeSumMode >()

template<>
float expectedSize< UserLogicFormat, ChargeSumMode > ( )

Definition at line 45 of file testGBTEncoder.cxx.