List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
TestCorsikaBlock Class Reference
Inheritance diagram for TestCorsikaBlock:
Inheritance graph
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void TestID ()
 
void TestIDThrow ()
 
void TestSizeBlock ()
 
void TestSizes ()
 

Public Attributes

io::Corsika::BlockIDfId = nullptr
 

Static Public Attributes

static const int kBlockSize = 1092
 
static const int kBlockSizeParticleData = 1092 + 4*Block::kPadding
 

Private Member Functions

 CPPUNIT_TEST (TestID)
 
 CPPUNIT_TEST (TestSizes)
 
 CPPUNIT_TEST (TestSizeBlock)
 
 CPPUNIT_TEST_EXCEPTION (TestIDThrow, io::CorsikaIOException)
 
 CPPUNIT_TEST_SUITE (TestCorsikaBlock)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 19 of file testCorsikaBlock.cc.

Member Function Documentation

TestCorsikaBlock::CPPUNIT_TEST ( TestID  )
private
TestCorsikaBlock::CPPUNIT_TEST ( TestSizes  )
private
TestCorsikaBlock::CPPUNIT_TEST ( TestSizeBlock  )
private
TestCorsikaBlock::CPPUNIT_TEST_EXCEPTION ( TestIDThrow  ,
io::CorsikaIOException   
)
private
TestCorsikaBlock::CPPUNIT_TEST_SUITE ( TestCorsikaBlock  )
private
TestCorsikaBlock::CPPUNIT_TEST_SUITE_END ( )
private
void TestCorsikaBlock::setUp ( )
inline

Definition at line 36 of file testCorsikaBlock.cc.

References fId, and io::Corsika::BlockID::SetID().

void TestCorsikaBlock::tearDown ( )
inline

Definition at line 43 of file testCorsikaBlock.cc.

References fId.

void TestCorsikaBlock::TestID ( )
inline

Definition at line 50 of file testCorsikaBlock.cc.

References fId, and io::Corsika::BlockID::Is().

void TestCorsikaBlock::TestIDThrow ( )
inline

Definition at line 59 of file testCorsikaBlock.cc.

References tst::Expected(), and io::Corsika::BlockID::SetID().

void TestCorsikaBlock::TestSizeBlock ( )
inline

Definition at line 79 of file testCorsikaBlock.cc.

References kBlockSizeParticleData.

void TestCorsikaBlock::TestSizes ( )
inline

Definition at line 67 of file testCorsikaBlock.cc.

References kBlockSize, and kBlockSizeParticleData.

Member Data Documentation

io::Corsika::BlockID* TestCorsikaBlock::fId = nullptr

Definition at line 30 of file testCorsikaBlock.cc.

Referenced by setUp(), tearDown(), and TestID().

const int TestCorsikaBlock::kBlockSize = 1092
static

Definition at line 32 of file testCorsikaBlock.cc.

Referenced by TestSizes().

const int TestCorsikaBlock::kBlockSizeParticleData = 1092 + 4*Block::kPadding
static

Definition at line 33 of file testCorsikaBlock.cc.

Referenced by TestSizeBlock(), and TestSizes().


The documentation for this class was generated from the following file:

, generated on Tue Sep 26 2023.