PDI 1.11.0

the PDI data interface

PDI::PdiTest Class Reference

The fixture class for PDI plugins testing. More...

#include <testing.h>

Inheritance diagram for PDI::PdiTest:

Protected Member Functions

 PdiTest ()
 ~PdiTest ()
template<typename T>
make_a ()
 make a new repeatably randomly initialized object
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))

Detailed Description

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

Constructor & Destructor Documentation

◆ PdiTest()

PDI::PdiTest::PdiTest ( )
protected

◆ ~PdiTest()

PDI::PdiTest::~PdiTest ( )
inlineprotected

Member Function Documentation

◆ make_a()

template<typename T>
T PDI::PdiTest::make_a ( )
inlineprotected

make a new repeatably randomly initialized object

◆ 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
treethe 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: