CbmRoot
_GTestCbmDefs.cxx File Reference
#include "CbmDetectorList.h"
#include <TString.h>
#include <gtest/gtest-spi.h>
#include <gtest/gtest.h>
#include <iostream>
Include dependency graph for _GTestCbmDefs.cxx:

Go to the source code of this file.

Classes

struct  InOutStructure
 
class  _TestCbmDetectorListBase< T >
 
class  CbmDetectorListTest
 
class  CbmDetectorListParamTest
 

Functions

 TEST (CbmDetectorList, outOfBounds)
 
 TEST_P (CbmDetectorListParamTest, checkUniqueIdCreation)
 
 INSTANTIATE_TEST_CASE_P (TestAllParameters, CbmDetectorListParamTest, ::testing::Values(val1, val2, val3, val4, val5, val6, val7, val8, val9, val10, val11, val12))
 

Variables

InOutStructure val1 = {kREF, 0, "ref", "REF"}
 
InOutStructure val2 = {kMVD, 1, "mvd", "MVD"}
 
InOutStructure val3 = {kSTS, 2, "sts", "STS"}
 
InOutStructure val4 = {kRICH, 3, "rich", "RICH"}
 
InOutStructure val5 = {kMUCH, 4, "much", "MUCH"}
 
InOutStructure val6 = {kTRD, 5, "trd", "TRD"}
 
InOutStructure val7 = {kTOF, 6, "tof", "TOF"}
 
InOutStructure val8 = {kECAL, 7, "ecal", "ECAL"}
 
InOutStructure val9 = {kPSD, 8, "unknown", "PSD"}
 
InOutStructure val10 = {kSTT, 9, "unknown", "UNKNOWN"}
 
InOutStructure val11 = {kFHODO, 10, "fhodo", "FHODO"}
 
InOutStructure val12 = {kTutDet, 11, "tutdet", "TUTDET"}
 
InOutStructure val13 = {kNOFDETS, 12, "unknown", "UNKNOWN"}
 

Function Documentation

◆ INSTANTIATE_TEST_CASE_P()

INSTANTIATE_TEST_CASE_P ( TestAllParameters  ,
CbmDetectorListParamTest  ,
::testing::Values(val1, val2, val3, val4, val5, val6, val7, val8, val9, val10, val11, val12  
)

◆ TEST()

TEST ( CbmDetectorList  ,
outOfBounds   
)

Definition at line 58 of file _GTestCbmDefs.cxx.

◆ TEST_P()

TEST_P ( CbmDetectorListParamTest  ,
checkUniqueIdCreation   
)

Definition at line 75 of file _GTestCbmDefs.cxx.

Variable Documentation

◆ val1

InOutStructure val1 = {kREF, 0, "ref", "REF"}

Definition at line 90 of file _GTestCbmDefs.cxx.

Referenced by TEST().

◆ val10

InOutStructure val10 = {kSTT, 9, "unknown", "UNKNOWN"}

Definition at line 99 of file _GTestCbmDefs.cxx.

◆ val11

InOutStructure val11 = {kFHODO, 10, "fhodo", "FHODO"}

Definition at line 100 of file _GTestCbmDefs.cxx.

◆ val12

InOutStructure val12 = {kTutDet, 11, "tutdet", "TUTDET"}

Definition at line 101 of file _GTestCbmDefs.cxx.

◆ val13

InOutStructure val13 = {kNOFDETS, 12, "unknown", "UNKNOWN"}

Definition at line 102 of file _GTestCbmDefs.cxx.

◆ val2

InOutStructure val2 = {kMVD, 1, "mvd", "MVD"}

Definition at line 91 of file _GTestCbmDefs.cxx.

Referenced by TEST().

◆ val3

InOutStructure val3 = {kSTS, 2, "sts", "STS"}

Definition at line 92 of file _GTestCbmDefs.cxx.

◆ val4

InOutStructure val4 = {kRICH, 3, "rich", "RICH"}

Definition at line 93 of file _GTestCbmDefs.cxx.

◆ val5

InOutStructure val5 = {kMUCH, 4, "much", "MUCH"}

Definition at line 94 of file _GTestCbmDefs.cxx.

◆ val6

InOutStructure val6 = {kTRD, 5, "trd", "TRD"}

Definition at line 95 of file _GTestCbmDefs.cxx.

◆ val7

InOutStructure val7 = {kTOF, 6, "tof", "TOF"}

Definition at line 96 of file _GTestCbmDefs.cxx.

◆ val8

InOutStructure val8 = {kECAL, 7, "ecal", "ECAL"}

Definition at line 97 of file _GTestCbmDefs.cxx.

◆ val9

InOutStructure val9 = {kPSD, 8, "unknown", "PSD"}

Definition at line 98 of file _GTestCbmDefs.cxx.