The Gaudi Framework  master (37c0b60a)
GaudiTesting Namespace Reference

Namespaces

 BaseTest
 
 FixtureResult
 
 GaudiExeTest
 
 JIRA
 
 preprocessors
 
 QMTTest
 
 Run
 
 SubprocessBaseTest
 
 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 ) {
29  msg << "Conditoin Failed: " << file_name << ":" << line_no << " " << condition_string;
30  throw std::runtime_error( msg.str() );
31  }
32  }
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:19
std::stringstream
STL class.
std::runtime_error
STL class.
std::string::substr
T substr(T... args)
std::string::rfind
T rfind(T... args)