PSEvt/test/psevt-source-unit-test.cpp File Reference

#include <boost/lexical_cast.hpp>
#include "PSEvt/Source.h"
#include "PSEvt/Exceptions.h"
#include <boost/test/included/unit_test.hpp>

Go to the source code of this file.

Namespaces

namespace  boost

Defines

#define BOOST_TEST_MODULE   psevt-source-unit-test

Functions

DetInfo dinfo1 (0, DetInfo::Detector(0), 0, DetInfo::Device(0), 0)
DetInfo dinfo2 (1, DetInfo::Detector(1), 1, DetInfo::Device(1), 1)
ProcInfo pinfo1 (Pds::Level::Control, 0, 0x01010101)
ProcInfo pinfo2 (Pds::Level::Control, 0, 0x70707070)
BldInfo binfo1 (0, BldInfo::EBeam)
BldInfo binfo2 (0, BldInfo::PhaseCavity)
void checkAny (Source xsrc)
void checkNoSrc (Source xsrc)
void checkAnyDetInfo (Source xsrc)
void checkDetInfo0000 (Source xsrc)
void checkDetInfo1111 (Source xsrc)
void checkDetInfo (Source xsrc, Pds::DetInfo::Detector det, unsigned detId, Pds::DetInfo::Device dev, unsigned devId)
void checkDetInfoMatch (Source xsrc)
void checkBldInfoEBeam (Source xsrc)
void checkBldInfo (Source xsrc, Pds::BldInfo::Type type)
void checkAnyBldInfo (Source xsrc)
void checkAnyProcInfo (Source xsrc)
void checkProcInfo1 (Source xsrc)
 BOOST_AUTO_TEST_CASE (test_any)
 BOOST_AUTO_TEST_CASE (test_no_source)
 BOOST_AUTO_TEST_CASE (test_detinfo1)
 BOOST_AUTO_TEST_CASE (test_detinfo2)
 BOOST_AUTO_TEST_CASE (test_bldinfo1)
 BOOST_AUTO_TEST_CASE (test_bldinfo2)
 BOOST_AUTO_TEST_CASE (test_str_any)
 BOOST_AUTO_TEST_CASE (test_str_any_detinfo)
 BOOST_AUTO_TEST_CASE (test_str_detinfo)
 BOOST_AUTO_TEST_CASE (test_str_detinfo_det)
 BOOST_AUTO_TEST_CASE (test_str_any_bldinfo)
 BOOST_AUTO_TEST_CASE (test_str_bldinfo)
 BOOST_AUTO_TEST_CASE (test_str_any_procinfo)
 BOOST_AUTO_TEST_CASE (test_str_procinfo)
 BOOST_AUTO_TEST_CASE (test_str_valid)
 BOOST_AUTO_TEST_CASE (test_str_invalid)
 BOOST_AUTO_TEST_CASE (test_src_format)
 BOOST_AUTO_TEST_CASE (test_src_alias)
 BOOST_AUTO_TEST_CASE (test_src_in_any)
 BOOST_AUTO_TEST_CASE (test_src_in_nosrc)
 BOOST_AUTO_TEST_CASE (test_src_in_bld)
 BOOST_AUTO_TEST_CASE (test_src_in_det)
 BOOST_AUTO_TEST_CASE (test_src_in_proc)

Variables

AliasMap amap
Src src_no_src


Define Documentation

#define BOOST_TEST_MODULE   psevt-source-unit-test

Definition at line 25 of file psevt-source-unit-test.cpp.


Function Documentation

BldInfo @13::binfo1 ( ,
BldInfo::EBeam   
) [static]

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfoEBeam(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), and checkProcInfo1().

BldInfo @13::binfo2 ( ,
BldInfo::PhaseCavity   
) [static]

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfoEBeam(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), and checkProcInfo1().

BOOST_AUTO_TEST_CASE ( test_src_in_proc   ) 

Definition at line 763 of file psevt-source-unit-test.cpp.

References amap, and PSEvt::Source::SrcMatch::in().

BOOST_AUTO_TEST_CASE ( test_src_in_det   ) 

Definition at line 688 of file psevt-source-unit-test.cpp.

References amap, and PSEvt::Source::SrcMatch::in().

BOOST_AUTO_TEST_CASE ( test_src_in_bld   ) 

Definition at line 648 of file psevt-source-unit-test.cpp.

References amap, and PSEvt::Source::SrcMatch::in().

BOOST_AUTO_TEST_CASE ( test_src_in_nosrc   ) 

Definition at line 612 of file psevt-source-unit-test.cpp.

References amap, and PSEvt::Source::SrcMatch::in().

BOOST_AUTO_TEST_CASE ( test_src_in_any   ) 

Definition at line 572 of file psevt-source-unit-test.cpp.

References amap, and PSEvt::Source::SrcMatch::in().

BOOST_AUTO_TEST_CASE ( test_src_alias   ) 

Definition at line 553 of file psevt-source-unit-test.cpp.

References PSEvt::AliasMap::add(), amap, binfo1(), binfo2(), checkBldInfo(), checkDetInfo0000(), checkDetInfo1111(), checkProcInfo1(), dinfo1(), dinfo2(), pinfo1(), and pinfo2().

BOOST_AUTO_TEST_CASE ( test_src_format   ) 

Definition at line 519 of file psevt-source-unit-test.cpp.

References src::det_interface::Detector().

BOOST_AUTO_TEST_CASE ( test_str_invalid   ) 

Definition at line 497 of file psevt-source-unit-test.cpp.

References amap.

BOOST_AUTO_TEST_CASE ( test_str_valid   ) 

Definition at line 412 of file psevt-source-unit-test.cpp.

References amap.

BOOST_AUTO_TEST_CASE ( test_str_procinfo   ) 

Definition at line 405 of file psevt-source-unit-test.cpp.

References checkProcInfo1().

BOOST_AUTO_TEST_CASE ( test_str_any_procinfo   ) 

Definition at line 398 of file psevt-source-unit-test.cpp.

References checkAnyProcInfo().

BOOST_AUTO_TEST_CASE ( test_str_bldinfo   ) 

Definition at line 386 of file psevt-source-unit-test.cpp.

References checkBldInfo(), and checkBldInfoEBeam().

BOOST_AUTO_TEST_CASE ( test_str_any_bldinfo   ) 

Definition at line 379 of file psevt-source-unit-test.cpp.

References checkAnyBldInfo().

BOOST_AUTO_TEST_CASE ( test_str_detinfo_det   ) 

Definition at line 360 of file psevt-source-unit-test.cpp.

References checkDetInfoMatch().

BOOST_AUTO_TEST_CASE ( test_str_detinfo   ) 

Definition at line 349 of file psevt-source-unit-test.cpp.

References checkDetInfo(), and checkDetInfo0000().

BOOST_AUTO_TEST_CASE ( test_str_any_detinfo   ) 

Definition at line 335 of file psevt-source-unit-test.cpp.

References checkAnyDetInfo().

BOOST_AUTO_TEST_CASE ( test_str_any   ) 

Definition at line 326 of file psevt-source-unit-test.cpp.

References checkAny().

BOOST_AUTO_TEST_CASE ( test_bldinfo2   ) 

Definition at line 317 of file psevt-source-unit-test.cpp.

References checkBldInfoEBeam().

BOOST_AUTO_TEST_CASE ( test_bldinfo1   ) 

Definition at line 308 of file psevt-source-unit-test.cpp.

References checkBldInfoEBeam().

BOOST_AUTO_TEST_CASE ( test_detinfo2   ) 

Definition at line 299 of file psevt-source-unit-test.cpp.

References checkDetInfo0000(), and src::det_interface::Detector().

BOOST_AUTO_TEST_CASE ( test_detinfo1   ) 

Definition at line 290 of file psevt-source-unit-test.cpp.

References checkDetInfo0000(), and src::det_interface::Detector().

BOOST_AUTO_TEST_CASE ( test_no_source   ) 

Definition at line 281 of file psevt-source-unit-test.cpp.

References checkNoSrc().

BOOST_AUTO_TEST_CASE ( test_any   ) 

Simple test suite for module psevt-source-unit-test. See http://www.boost.org/doc/libs/1_36_0/libs/test/doc/html/index.html

Definition at line 272 of file psevt-source-unit-test.cpp.

References checkAny().

void @13::checkAny ( Source  xsrc  )  [static]

Definition at line 40 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkAnyBldInfo ( Source  xsrc  )  [static]

Definition at line 204 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkAnyDetInfo ( Source  xsrc  )  [static]

Definition at line 78 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkAnyProcInfo ( Source  xsrc  )  [static]

Definition at line 223 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkBldInfo ( Source  xsrc,
Pds::BldInfo::Type  type 
) [static]

Definition at line 190 of file psevt-source-unit-test.cpp.

References amap, PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::src(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkBldInfoEBeam ( Source  xsrc  )  [static]

Definition at line 171 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkDetInfo ( Source  xsrc,
Pds::DetInfo::Detector  det,
unsigned  detId,
Pds::DetInfo::Device  dev,
unsigned  devId 
) [static]

Definition at line 135 of file psevt-source-unit-test.cpp.

References amap, PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::src(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkDetInfo0000 ( Source  xsrc  )  [static]

Definition at line 97 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkDetInfo1111 ( Source  xsrc  )  [static]

Definition at line 116 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkDetInfoMatch ( Source  xsrc  )  [static]

Definition at line 152 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkNoSrc ( Source  xsrc  )  [static]

Definition at line 59 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

void @13::checkProcInfo1 ( Source  xsrc  )  [static]

Definition at line 242 of file psevt-source-unit-test.cpp.

References amap, binfo1(), binfo2(), dinfo1(), dinfo2(), PSEvt::Source::SrcMatch::isExact(), PSEvt::Source::SrcMatch::isNoSource(), PSEvt::Source::SrcMatch::match(), pinfo1(), pinfo2(), and PSEvt::Source::srcMatch().

Referenced by BOOST_AUTO_TEST_CASE().

DetInfo @13::dinfo1 ( ,
DetInfo::  Detector(0),
,
DetInfo::  Device(0),
 
) [static]

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfoEBeam(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), and checkProcInfo1().

DetInfo @13::dinfo2 ( ,
DetInfo::  Detector(1),
,
DetInfo::  Device(1),
 
) [static]

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfoEBeam(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), and checkProcInfo1().

ProcInfo @13::pinfo1 ( Pds::Level::Control  ,
,
0x01010101   
) [static]

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfoEBeam(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), and checkProcInfo1().

ProcInfo @13::pinfo2 ( Pds::Level::Control  ,
,
0x70707070   
) [static]

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfoEBeam(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), and checkProcInfo1().


Variable Documentation

AliasMap amap [static]

Definition at line 30 of file psevt-source-unit-test.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), checkAny(), checkAnyBldInfo(), checkAnyDetInfo(), checkAnyProcInfo(), checkBldInfo(), checkBldInfoEBeam(), checkDetInfo(), checkDetInfo0000(), checkDetInfo1111(), checkDetInfoMatch(), checkNoSrc(), checkProcInfo1(), psana::PSAna::dataSource(), PSXtcInput::XtcInputModuleBase::fillEnv(), and PSEvt::Source::srcMatch().

Src src_no_src [static]

Definition at line 31 of file psevt-source-unit-test.cpp.


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7