distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::QueueOperationsTestCase Class Reference

Tests various [Raw]{Fifo,Message}Queue operations. More...

#include <QueueOperationsTestCase.hpp>

Inheritance diagram for distortos::test::QueueOperationsTestCase:
Collaboration diagram for distortos::test::QueueOperationsTestCase:

Private Member Functions

bool run_ () const override
 Runs the test case. More...

Additional Inherited Members

- Public Member Functions inherited from distortos::test::TestCase
bool run () const
 Public function to start the test case. More...
- Protected Member Functions inherited from distortos::test::TestCaseCommon
bool finalize () const override
 Finalizes the test case. More...
bool initialize () const override
 Initializes the test case. More...

Detailed Description

Tests various [Raw]{Fifo,Message}Queue operations.

Tests emplacing (emplace(), tryEmplace(), tryEmplaceFor() and tryEmplaceUntil()), pushing (push(), tryPush(), tryPushFor() and tryPushUntil()) and popping (pop(), tryPop(), tryPopFor() and tryPopUntil()) to/from [Raw]{Fifo,Message}Queue, both from thread and from interrupt context - these operations must return expected result, cause expected number of context switches, finish within expected time frame, execute expected actions on transferred object (various constructor types, destructor, swap, ...) and leak no memory (in case of "dynamic" queue).

Member Function Documentation

◆ run_()

bool distortos::test::QueueOperationsTestCase::run_ ( ) const

Runs the test case.

true if the test case succeeded, false otherwise

Implements distortos::test::TestCase.

Here is the call graph for this function:

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