Project
Loading...
Searching...
No Matches
testError.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "MCHBase/Error.h"
#include <map>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   error test
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (ErrorGroupConsistency)
 
 BOOST_AUTO_TEST_CASE (ErrorTypeConsistency)
 

Variables

const std::map< ErrorGroup, uint8_t > errorGroupIds
 expected ID of each error group
 
const std::map< ErrorType, uint32_t > errorTypeIds
 expected ID of each error type
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 14 of file testError.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 13 of file testError.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   error test

Definition at line 12 of file testError.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( ErrorGroupConsistency  )

Definition at line 45 of file testError.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( ErrorTypeConsistency  )

Definition at line 54 of file testError.cxx.

Variable Documentation

◆ errorGroupIds

const std::map<ErrorGroup, uint8_t> errorGroupIds
Initial value:
= {
{ErrorGroup::Unassigned, 0U},
{ErrorGroup::Decoding, 1U},
{ErrorGroup::Filtering, 2U},
{ErrorGroup::TimeClustering, 3U},
{ErrorGroup::PreClustering, 4U},
{ErrorGroup::Clustering, 5U},
{ErrorGroup::Tracking, 6U}}

expected ID of each error group

Definition at line 26 of file testError.cxx.

◆ errorTypeIds

const std::map<ErrorType, uint32_t> errorTypeIds
Initial value:
= {
{ErrorType::PreClustering_MultipleDigitsInSamePad, 67108864U},
{ErrorType::PreClustering_LostDigit, 67108865U},
{ErrorType::Clustering_TooManyLocalMaxima, 83886080U},
{ErrorType::Tracking_TooManyCandidates, 100663296U},
{ErrorType::Tracking_TooLong, 100663297U}}

expected ID of each error type

Definition at line 38 of file testError.cxx.