ChimeraTK-DeviceAccess  03.18.00
testMapFileParser.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Exception.h"
#include "helperFunctions.h"
#include "MapFileParser.h"
#include "NumericAddressedRegisterCatalogue.h"
#include <sstream>
+ Include dependency graph for testMapFileParser.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   MapFileParser
 

Functions

void printRegInfo (const ChimeraTK::NumericAddressedRegisterInfo &info, std::ostream &ostr=std::cout)
 
void compareCatalogue (const NumericAddressedRegisterCatalogue &regcat, const std::vector< ChimeraTK::NumericAddressedRegisterInfo > &RegisterInfoents)
 
 BOOST_AUTO_TEST_CASE (testFileDoesNotExist)
 
 BOOST_AUTO_TEST_CASE (testInvalidMetadata)
 
 BOOST_AUTO_TEST_CASE (testMandatoryRegisterFieldMissing)
 
 BOOST_AUTO_TEST_CASE (testIncorrectRegisterWidth)
 
 BOOST_AUTO_TEST_CASE (testFracBits)
 
 BOOST_AUTO_TEST_CASE (testGoodMapFileParse)
 
 BOOST_AUTO_TEST_CASE (testGoodMappFileParse)
 
 BOOST_AUTO_TEST_CASE (testMixedMapFileParse)
 
 BOOST_AUTO_TEST_CASE (testInterruptBadMapFileParse)
 
 BOOST_AUTO_TEST_CASE (testInterruptMapFileParse)
 
 BOOST_AUTO_TEST_CASE (testMapFileWithCommentsParse)
 
 BOOST_AUTO_TEST_CASE (testMapFileNewStyleMuxed)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 4 of file testMapFileParser.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   MapFileParser

Definition at line 6 of file testMapFileParser.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/12]

BOOST_AUTO_TEST_CASE ( testFileDoesNotExist  )

Definition at line 61 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/12]

BOOST_AUTO_TEST_CASE ( testFracBits  )

Definition at line 89 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/12]

BOOST_AUTO_TEST_CASE ( testGoodMapFileParse  )

Definition at line 98 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/12]

BOOST_AUTO_TEST_CASE ( testGoodMappFileParse  )

Definition at line 138 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/12]

BOOST_AUTO_TEST_CASE ( testIncorrectRegisterWidth  )

Definition at line 82 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/12]

BOOST_AUTO_TEST_CASE ( testInterruptBadMapFileParse  )

Definition at line 221 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/12]

BOOST_AUTO_TEST_CASE ( testInterruptMapFileParse  )

Definition at line 232 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/12]

BOOST_AUTO_TEST_CASE ( testInvalidMetadata  )

Definition at line 68 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/12]

BOOST_AUTO_TEST_CASE ( testMandatoryRegisterFieldMissing  )

Definition at line 75 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/12]

BOOST_AUTO_TEST_CASE ( testMapFileNewStyleMuxed  )

Definition at line 358 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/12]

BOOST_AUTO_TEST_CASE ( testMapFileWithCommentsParse  )

Definition at line 291 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/12]

BOOST_AUTO_TEST_CASE ( testMixedMapFileParse  )

Definition at line 205 of file testMapFileParser.cpp.

+ Here is the call graph for this function:

◆ compareCatalogue()

void compareCatalogue ( const NumericAddressedRegisterCatalogue regcat,
const std::vector< ChimeraTK::NumericAddressedRegisterInfo > &  RegisterInfoents 
)

Definition at line 41 of file testMapFileParser.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printRegInfo()

void printRegInfo ( const ChimeraTK::NumericAddressedRegisterInfo info,
std::ostream &  ostr = std::cout 
)

Definition at line 24 of file testMapFileParser.cpp.

+ Here is the caller graph for this function: