#include "tutil.h"
#include "lcio.h"
#include "EVENT/LCIO.h"
#include "IO/LCWriter.h"
#include "IMPL/LCEventImpl.h"
#include "IMPL/LCCollectionVec.h"
#include <iostream>
Include dependency graph for test_example.cc:
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
Variables | |
static const string | testname = "mytest" |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 23 of file test_example.cc.
00023 { 00024 00025 // this should be the first line in your test 00026 TEST MYTEST=TEST( testname, std::cout ); 00027 00028 // write your test here 00029 for( int i=0; i<3; i++){ 00030 MYTEST.LOG( "this is just a test..." ); 00031 } 00032 00033 //if( true ){ 00034 if( false ){ 00035 // force test program to fail in this way: 00036 MYTEST.FAILED( "oops, something went wrong..." ); 00037 } 00038 00039 // example with a try&catch fail condition: 00040 // 00041 /////////////////////////////////////////////////////////////////////// 00042 //LCReader* lcReader = LCFactory::getInstance()->createLCReader() ; 00043 //try{ 00044 // lcReader->open( "blub.slcio" ) ; 00045 //} 00046 //catch( Exception &e ){ 00047 // MYTEST.FAILED( e.what() ); 00048 //} 00049 //lcReader->close(); 00050 //delete lcReader; 00051 /////////////////////////////////////////////////////////////////////// 00052 00053 return 0; 00054 }
const string testname = "mytest" [static] |
Definition at line 19 of file test_example.cc.