Functions | |
const ::Falcon::String & | getFailureReason () |
Retreives the last failure reason. | |
bool | getSuccess () |
Check wether the last module execution exited with a succes or a failure. | |
::Falcon::int64 | getTimeFactor () |
Get internal test time factor. | |
void | getTimings (::Falcon::numeric &totTime,::Falcon::numeric &numOps) |
Get internal test timings. | |
void | setSuccess (bool mode) |
void | setTestName (const ::Falcon::String &name) |
Sets the name of the test. | |
void | setTimeFactor (::Falcon::int64 factor) |
set internal test time factor. |
const ::Falcon::String& Falcon::TestSuite::getFailureReason | ( | ) |
Retreives the last failure reason.
If a module caused a failure, this function returns a string that the module passed to the failure() falcon function. If the module didn't set a reason for it's failure, the returned string is empty.
bool Falcon::TestSuite::getSuccess | ( | ) |
Check wether the last module execution exited with a succes or a failure.
If the last module that was passed into the VM called success() to terminate it's execution, this function returns true. If it called failure(), this function return false.
In case the script termiantes without calling success or failure, the return is undetermined. For this reason, it's advisable to reset the success status with setSuccesss() function to a consistent value.
::Falcon::int64 Falcon::TestSuite::getTimeFactor | ( | ) |
Get internal test time factor.
void Falcon::TestSuite::getTimings | ( | ::Falcon::numeric & | totTime, | |
::Falcon::numeric & | numOps | |||
) |
Get internal test timings.
void Falcon::TestSuite::setSuccess | ( | bool | mode | ) |
void Falcon::TestSuite::setTestName | ( | const ::Falcon::String & | name | ) |
Sets the name of the test.
Used for internal reporting and alive functions.
name | the name of the test that is being run. |
void Falcon::TestSuite::setTimeFactor | ( | ::Falcon::int64 | factor | ) |
set internal test time factor.