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

Namespaces

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

Classes

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

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 }