distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::test::TestCaseGroup Class Reference

TestCaseGroup class is a group of TestCase objects. More...

#include <TestCaseGroup.hpp>

Inheritance diagram for distortos::test::TestCaseGroup:
[legend]
Collaboration diagram for distortos::test::TestCaseGroup:
[legend]

Public Types

using Range = estd::ContiguousRange< const estd::ReferenceHolder< const TestCase > >
 range of references to TestCase objects More...
 

Public Member Functions

constexpr TestCaseGroup (const Range range)
 TestCaseGroup's constructor. More...
 
- Public Member Functions inherited from distortos::test::TestCase
bool run () const
 Public function to start the test case. More...
 

Private Member Functions

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

Private Attributes

Range range_
 range of references to TestCase objects More...
 

Additional Inherited Members

- 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

TestCaseGroup class is a group of TestCase objects.

Member Typedef Documentation

◆ Range

Constructor & Destructor Documentation

◆ TestCaseGroup()

constexpr distortos::test::TestCaseGroup::TestCaseGroup ( const Range  range)
inlineexplicit

TestCaseGroup's constructor.

Parameters
[in]rangeis a range of references to TestCase objects
Here is the call graph for this function:

Member Function Documentation

◆ run_()

bool distortos::test::TestCaseGroup::run_ ( ) const
overrideprivatevirtual

Runs the test case.

Runs each test case from range_.

Returns
true if the test case succeeded, false otherwise

Implements distortos::test::TestCase.

Here is the caller graph for this function:

Member Data Documentation

◆ range_

Range distortos::test::TestCaseGroup::range_
private

range of references to TestCase objects


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