ChimeraTK-DeviceAccess 03.27.00
Loading...
Searching...
No Matches
testMapFileParser.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Exception.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 (test64BitSequence)
 
 BOOST_AUTO_TEST_CASE (testGoodMapFileParse)
 
 BOOST_AUTO_TEST_CASE (test64BitScalar)
 
 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/14]

BOOST_AUTO_TEST_CASE ( test64BitScalar  )

Definition at line 158 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( test64BitSequence  )

Definition at line 99 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( testFileDoesNotExist  )

Definition at line 60 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( testFracBits  )

Definition at line 91 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( testGoodMapFileParse  )

Definition at line 119 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( testGoodMappFileParse  )

Definition at line 170 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( testIncorrectRegisterWidth  )

Definition at line 81 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( testInterruptBadMapFileParse  )

Definition at line 253 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( testInterruptMapFileParse  )

Definition at line 264 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( testInvalidMetadata  )

Definition at line 67 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( testMandatoryRegisterFieldMissing  )

Definition at line 74 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( testMapFileNewStyleMuxed  )

Definition at line 390 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( testMapFileWithCommentsParse  )

Definition at line 323 of file testMapFileParser.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( testMixedMapFileParse  )

Definition at line 237 of file testMapFileParser.cpp.

◆ compareCatalogue()

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

Definition at line 40 of file testMapFileParser.cpp.

◆ printRegInfo()

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

Definition at line 23 of file testMapFileParser.cpp.