Lumiera  0.pre.03
»edit your freedom«
TestAsset< A > Class Template Reference

#include "/Werk/devel/lumi/tests/core/steam/asset/testasset.hpp"

Description

template<class A>
class steam::asset::test::TestAsset< A >

Test(mock) asset subclass usable for hijacking a given asset class (template parameter) and subsequently accessing internal facilities for writing unit tests.

Prerequisite for using this template is that the used asset base class has a (protected) ctor taking an Asset::Ident....

Definition at line 52 of file testasset.hpp.

Public Types

using PA = lib::P< TestAsset< A > >
 

Public Member Functions

void call_unlink ()
 
void call_unlink (IDA target)
 
void set_depend (PAsset parent)
 

Static Public Member Functions

static PA create ()
 
static PA create (PAsset &pRef)
 

Private Member Functions

 TestAsset (PAsset &)
 declared dependent on the given Asset
 
PA ptrFromThis ()
 

Static Private Member Functions

static void deleter (TestAsset< A > *aa)
 

Member Function Documentation

◆ ptrFromThis()

template lib::P< TestAsset< Unknown > > ptrFromThis ( )
private

helper for the create()-Functions retrieving the smart ptr created automatically within AssetManager by the Asset base class ctor

Definition at line 87 of file testasset.cpp.

References AssetManager::instance.

+ Inheritance diagram for TestAsset< A >:
+ Collaboration diagram for TestAsset< A >:

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