The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
GaudiTesting Namespace Reference

Namespaces

namespace  FixtureResult
 
namespace  GaudiExeTest
 
namespace  JIRA
 
namespace  preprocessors
 
namespace  SubprocessBaseTest
 
namespace  utils
 

Classes

class  CustomIncidentAlg
 
class  DestructorCheckAlg
 
class  EvenEventsFilter
 
class  FailingSvc
 Special service that issue a failure in one of the transitions (for testing). More...
 
class  GaudiEnv
 
class  GetDataObjectAlg
 Simple algorithm that retrieves objects from the transient store. More...
 
class  ITestTool
 
class  ListTools
 Simple algorithm that creates dummy objects in the transient store. More...
 
class  OddEventsFilter
 
class  PrintMemoryUsage
 Simple algorithm that prints the memory usage every N events (property "Frequency"). More...
 
class  PutDataObjectAlg
 Simple algorithm that creates dummy objects in the transient store. More...
 
class  SignallingAlg
 Simple algorithm that raise a signal after N events. More...
 
class  SleepyAlg
 
class  StopLoopAlg
 
class  SvcWithTool
 Special service that issue a failure in one of the transitions (for testing). More...
 
class  TestAlg
 
class  TestTool
 

Functions

void throwConditionFailed (bool condition, const std::string &file_name, int line_no, const std::string &condition_string)
 
std::string extractBaseName (const std::string &full_name)
 

Function Documentation

◆ extractBaseName()

std::string GaudiTesting::extractBaseName ( const std::string & full_name)

Definition at line 34 of file ToolVisitorTestLib.cpp.

34 {
35 std::string::size_type pos = full_name.rfind( "." );
36 std::string::size_type pos2 = full_name.rfind( "/" );
37 if ( pos == std::string::npos ) {
38 pos = pos2;
39 } else if ( pos2 > pos ) {
40 pos = pos2;
41 }
42 return pos != std::string::npos ? full_name.substr( pos + 1 ) : full_name;
43 }

◆ throwConditionFailed()

void GaudiTesting::throwConditionFailed ( bool condition,
const std::string & file_name,
int line_no,
const std::string & condition_string )

Definition at line 25 of file ToolVisitorTestLib.cpp.

26 {
27 if ( !condition ) {
28 std::stringstream msg;
29 msg << "Conditoin Failed: " << file_name << ":" << line_no << " " << condition_string;
30 throw std::runtime_error( msg.str() );
31 }
32 }