The fixture class for PDI plugins testing.
More...
#include <testing.h>
|
| | PdiTest () |
| | ~PdiTest () |
| template<typename T> |
| T | make_a () |
| | make a new repeatably randomly initialized object
|
| void | with_file (std::filesystem::path file) |
| | Requires a file from the original working-directory to be present on the effective working-directory.
|
| void | InitPdi (PC_tree_t tree) |
| | Initialize PDI with the provided PC_tree.
|
| void | FinalizePdi () |
| | Finalize PDI.
|
| | MOCK_METHOD (void, PdiError,(PDI_status_t, char const *),(const)) |
The fixture class for PDI plugins testing.
- Each test run in its own directory.
- offer make_a to create data
- Takes ownership of PC_tree and handles initialization & finalization of PDI
◆ PdiTest()
| PDI::PdiTest::PdiTest |
( |
| ) |
|
|
protected |
◆ ~PdiTest()
| PDI::PdiTest::~PdiTest |
( |
| ) |
|
|
inlineprotected |
◆ make_a()
template<typename T>
| T PDI::PdiTest::make_a |
( |
| ) |
|
|
inlineprotected |
make a new repeatably randomly initialized object
◆ with_file()
| void PDI::PdiTest::with_file |
( |
std::filesystem::path | file | ) |
|
|
inlineprotected |
Requires a file from the original working-directory to be present on the effective working-directory.
- Parameters
-
| file | the file to make present |
◆ InitPdi()
| void PDI::PdiTest::InitPdi |
( |
PC_tree_t | tree | ) |
|
|
inlineprotected |
Initialize PDI with the provided PC_tree.
Takes ownership of the tree. If PDI was already initialized, finalize it first.
- Parameters
-
| tree | the tree to initialize from. |
◆ FinalizePdi()
| void PDI::PdiTest::FinalizePdi |
( |
| ) |
|
|
inlineprotected |
Finalize PDI.
Leaves any file created available until the end of the test
◆ MOCK_METHOD()
| PDI::PdiTest::MOCK_METHOD |
( |
void | , |
|
|
PdiError | , |
|
|
(PDI_status_t, char const *) | , |
|
|
(const) | ) |
|
protected |
The documentation for this class was generated from the following file: