Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
DefsManager_test Class Reference

Description

Test:
basic behaviour of the defaults manager ("the big picture")
  • retrieving a "default" object repeatedly
  • retrieving a more constrained "default" object
  • failure registers a new "default"
  • instance management

Using pipe assets as an example. The defaults manager shouldn't interfere with memory management (it holds weak refs).

Definition at line 77 of file defs-manager-test.cpp.

Private Member Functions

virtual void run (Arg arg)
 
void retrieveSimpleDefault (string)
 
void retrieveConstrainedDefault (string pID, string sID)
 
void failureCreatesNewDefault ()
 
void verifyRemoval ()
 verify the defaults manager holds only weak refs, so if an object goes out of scope, any defaults entries are purged silently
 

Member Function Documentation

◆ run()

virtual void run ( Arg  arg)
inlineprivatevirtual

Definition at line 80 of file defs-manager-test.cpp.

References DefsManager_test::failureCreatesNewDefault(), DefsManager_test::retrieveConstrainedDefault(), DefsManager_test::retrieveSimpleDefault(), and DefsManager_test::verifyRemoval().

+ Here is the call graph for this function:

◆ retrieveSimpleDefault()

void retrieveSimpleDefault ( string  )
inlineprivate

Definition at line 99 of file defs-manager-test.cpp.

References Session::current, Session::defaults, Pipe::query(), and Struct::retrieve.

Referenced by DefsManager_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retrieveConstrainedDefault()

void retrieveConstrainedDefault ( string  pID,
string  sID 
)
inlineprivate

Definition at line 119 of file defs-manager-test.cpp.

References Pipe::query().

Referenced by DefsManager_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ failureCreatesNewDefault()

void failureCreatesNewDefault ( )
inlineprivate

Definition at line 138 of file defs-manager-test.cpp.

References Session::current, Session::defaults, and steam::mobject::session::test::find().

Referenced by DefsManager_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyRemoval()

void verifyRemoval ( )
inlineprivate

verify the defaults manager holds only weak refs, so if an object goes out of scope, any defaults entries are purged silently

Definition at line 162 of file defs-manager-test.cpp.

References Session::current, Session::defaults, DefsManager::define(), steam::mobject::session::test::find(), hash, AssetManager::instance, AssetManager::known(), StructFactory::newInstance(), AssetManager::remove(), and Struct::retrieve.

Referenced by DefsManager_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for DefsManager_test:
+ Collaboration diagram for DefsManager_test:

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