This class defines expected values for stack usage during test. More...
#include <CTestStackUsage.h>
Public Types | |
| enum | ETestStackUsageSections |
| Ids of test specification sections. | |
Public Member Functions | |
| CTestStackUsage () | |
| Default ctor. | |
| CTestStackUsage (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| std::string | getMaxUsedSize () |
| Returns max stack size - at most that amount of stack is expected to be used during test. | |
| std::string | getMinUsedSize () |
| Returns min stack size - at least that amount of stack is expected to be used during test. | |
| bool | isEmpty () const override |
| This method returns true, if the object contains no data. | |
| bool | isMerged () const override |
| Returns true, if the CTestSpecification section containing this object is merged. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| void | setMaxUsedSize (int maxSize) |
| Sets min stack size - at least that amount of stack is expected to be used during test. | |
| void | setMinUsedSize (int minSize) |
| Sets max stack size - at most that amount of stack is expected to be used during test. | |
| std::string | toString () override |
| Returns object data as YAML string. | |
Static Public Member Functions | |
| static CTestStackUsageSPtr | cast (CTestBaseSPtr &testBase) |
| Casts the given object to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class defines expected values for stack usage during test.
| isys::CTestStackUsage::CTestStackUsage | ( | ) |
Default ctor.
| isys::CTestStackUsage::CTestStackUsage | ( | const CTestBaseSPtr & | parent | ) |
Initializes new instance.
| parent | an instance of parent CTestSpecification class. |
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
| std::string isys::CTestStackUsage::getMaxUsedSize | ( | ) |
Returns max stack size - at most that amount of stack is expected to be used during test.
| std::string isys::CTestStackUsage::getMinUsedSize | ( | ) |
Returns min stack size - at least that amount of stack is expected to be used during test.
|
overrideinherited |
This method returns true, if the object contains no data.
|
overridevirtual |
Returns true, if the CTestSpecification section containing this object is merged.
Reimplemented from isys::CTestBase.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
| void isys::CTestStackUsage::setMaxUsedSize | ( | int | maxSize | ) |
Sets min stack size - at least that amount of stack is expected to be used during test.
| void isys::CTestStackUsage::setMinUsedSize | ( | int | minSize | ) |
Sets max stack size - at most that amount of stack is expected to be used during test.
|
overrideinherited |
Returns object data as YAML string.