ChimeraTK-DeviceAccess  03.18.00
testMultiplexedDataAccesor.cpp File Reference
#include "BackendFactory.h"
#include "Device.h"
#include "DummyBackend.h"
#include "MapFileParser.h"
#include "NumericAddressedBackendMuxedRegisterAccessor.h"
#include "TwoDRegisterAccessor.h"
#include <iostream>
#include <sstream>
#include <boost/test/data/test_case.hpp>
#include <boost/test/unit_test.hpp>
+ Include dependency graph for testMultiplexedDataAccesor.cpp:

Go to the source code of this file.

Classes

struct  TestParameters
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   MultiplexedDataAccessorTest
 

Functions

std::ostream & operator<< (std::ostream &o, const TestParameters &p)
 
 BOOST_DATA_TEST_CASE (testConstructor, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
template<class SequenceWordType >
void testDeMultiplexing (std::string areaName, const TestParameters &sample)
 
 BOOST_DATA_TEST_CASE (testDeMultiplexing32, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testDeMultiplexing16, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testDeMultiplexing8, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
template<class SequenceWordType >
void testWithConversion (std::string multiplexedSequenceName, const TestParameters &sample)
 
 BOOST_DATA_TEST_CASE (testWithConversion32, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testWithConversion16, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testWithConversion8, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testMixed, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testNumberOfSequencesDetected, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testAreaOfInterestOffset, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 
 BOOST_DATA_TEST_CASE (testAreaOfInterestLength, boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS}))
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 4 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   MultiplexedDataAccessorTest

Definition at line 16 of file testMultiplexedDataAccesor.cpp.

Function Documentation

◆ BOOST_DATA_TEST_CASE() [1/11]

BOOST_DATA_TEST_CASE ( testAreaOfInterestLength  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 380 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [2/11]

BOOST_DATA_TEST_CASE ( testAreaOfInterestOffset  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 288 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [3/11]

BOOST_DATA_TEST_CASE ( testConstructor  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 52 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [4/11]

BOOST_DATA_TEST_CASE ( testDeMultiplexing16  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 150 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [5/11]

BOOST_DATA_TEST_CASE ( testDeMultiplexing32  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 147 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [6/11]

BOOST_DATA_TEST_CASE ( testDeMultiplexing8  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 153 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [7/11]

BOOST_DATA_TEST_CASE ( testMixed  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 227 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [8/11]

BOOST_DATA_TEST_CASE ( testNumberOfSequencesDetected  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 276 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [9/11]

BOOST_DATA_TEST_CASE ( testWithConversion16  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 220 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [10/11]

BOOST_DATA_TEST_CASE ( testWithConversion32  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 217 of file testMultiplexedDataAccesor.cpp.

◆ BOOST_DATA_TEST_CASE() [11/11]

BOOST_DATA_TEST_CASE ( testWithConversion8  ,
boost::unit_test::data::make({AREA_PARAMS, NEW_AREA_PARAMS})   
)

Definition at line 223 of file testMultiplexedDataAccesor.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const TestParameters p 
)

Definition at line 38 of file testMultiplexedDataAccesor.cpp.

◆ testDeMultiplexing()

template<class SequenceWordType >
void testDeMultiplexing ( std::string  areaName,
const TestParameters sample 
)

Definition at line 65 of file testMultiplexedDataAccesor.cpp.

+ Here is the call graph for this function:

◆ testWithConversion()

template<class SequenceWordType >
void testWithConversion ( std::string  multiplexedSequenceName,
const TestParameters sample 
)

Definition at line 160 of file testMultiplexedDataAccesor.cpp.

+ Here is the call graph for this function: