distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::TestCase Class Referenceabstract

TestCase class is an interface class for test cases. More...

#include <TestCase.hpp>

Inheritance diagram for distortos::test::TestCase:
[legend]

Public Member Functions

bool run () const
 Public function to start the test case. More...
 

Protected Member Functions

virtual bool finalize () const =0
 Finalizes the test case. More...
 
virtual bool initialize () const =0
 Initializes the test case. More...
 

Private Member Functions

virtual bool run_ () const =0
 Runs the test case. More...
 

Detailed Description

TestCase class is an interface class for test cases.

Note
This class deliberately has neither public virtual destructor nor protected non-virtual destructor - this way objects derived from this class may be ROMable. These objects should not be deleted via pointer of TestCase type.

Member Function Documentation

◆ finalize()

virtual bool distortos::test::TestCase::finalize ( ) const
protectedpure virtual

Finalizes the test case.

Note
this should be provided by derived classes
Returns
true if finalization succeeded, false otherwise

Implemented in distortos::test::SignalsTestCaseCommon, distortos::test::FpuSignalTestCase, distortos::test::PrioritizedTestCase, and distortos::test::TestCaseCommon.

Here is the caller graph for this function:

◆ initialize()

virtual bool distortos::test::TestCase::initialize ( ) const
protectedpure virtual

Initializes the test case.

Note
this should be provided by derived classes
Returns
true if initialization succeeded, false otherwise

Implemented in distortos::test::SignalsTestCaseCommon, distortos::test::PrioritizedTestCase, and distortos::test::TestCaseCommon.

Here is the caller graph for this function:

◆ run()

bool distortos::test::TestCase::run ( ) const

Public function to start the test case.

Returns
true if the test case succeeded, false otherwise
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_()

virtual bool distortos::test::TestCase::run_ ( ) const
privatepure virtual

Runs the test case.

Note
this should be provided by derived classes
Returns
true if the test case succeeded, false otherwise

Implemented in distortos::test::MutexPriorityProtocolTestCase, distortos::test::FpuSignalTestCase, distortos::test::SignalsInterruptionTestCase, distortos::test::SignalsCatchingTestCase, distortos::test::MutexPriorityInheritanceOperationsTestCase, distortos::test::MutexOperationsTestCase, distortos::test::MutexPriorityProtectOperationsTestCase, distortos::test::SignalsWaitOperationsTestCase, distortos::test::MessageQueuePriorityTestCase, distortos::test::SignalsGenerationOperationsTestCase, distortos::test::FifoQueuePriorityTestCase, distortos::test::SignalsQueuedOperationsTestCase, distortos::test::FpuThreadTestCase, distortos::test::CallOnceOperationsTestCase, distortos::test::TestCaseGroup, distortos::test::ThreadPriorityChangeTestCase, distortos::test::ConditionVariablePriorityTestCase, distortos::test::SemaphorePriorityTestCase, distortos::test::SignalCatchingOperationsTestCase, distortos::test::SignalsWaitTestCase, distortos::test::ThreadSleepForTestCase, distortos::test::ThreadSleepUntilTestCase, distortos::test::MutexErrorCheckingOperationsTestCase, distortos::test::MutexRecursiveOperationsTestCase, distortos::test::QueueOperationsTestCase, distortos::test::CallOnceFunctionTypesTestCase, distortos::test::MutexPriorityTestCase, distortos::test::SoftwareTimerFunctionTypesTestCase, distortos::test::SoftwareTimerPeriodicTestCase, distortos::test::ThreadFunctionTypesTestCase, distortos::test::ThreadPriorityTestCase, distortos::test::ThreadSchedulingPolicyTestCase, distortos::test::ConditionVariableOperationsTestCase, distortos::test::SemaphoreOperationsTestCase, distortos::test::SoftwareTimerOrderingTestCase, distortos::test::SoftwareTimerOperationsTestCase, and distortos::test::ThreadOperationsTestCase.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: