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

Description

Test:
create a bunch of objects with varying type and size, memorising how to kill them properly. Verify everyone is dead after mass-kill. Use a checksum not only to verify the number of objects created and destroyed, but also the individual (random) contents of the data within the objects, to ensure that the correct destructor actually is invoked for each type.
See also
lib::DelStash

Definition at line 92 of file del-stash-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void checkSingleKill ()
 
void feedViktims (DelStash &killer)
 
void checkMassKill ()
 
void checkAutoKill ()
 
void checkCustomKill ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 96 of file del-stash-test.cpp.

References DelStash_test::checkAutoKill(), DelStash_test::checkCustomKill(), DelStash_test::checkMassKill(), and DelStash_test::checkSingleKill().

+ Here is the call graph for this function:

◆ checkSingleKill()

void checkSingleKill ( )
inlineprivate

Definition at line 109 of file del-stash-test.cpp.

References DelStash::kill(), DelStash::manage(), NULL, and DelStash::size().

Referenced by DelStash_test::run().

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

◆ feedViktims()

void feedViktims ( DelStash killer)
inlineprivate

Definition at line 144 of file del-stash-test.cpp.

Referenced by DelStash_test::checkAutoKill(), and DelStash_test::checkMassKill().

+ Here is the caller graph for this function:

◆ checkMassKill()

void checkMassKill ( )
inlineprivate

Definition at line 158 of file del-stash-test.cpp.

References DelStash_test::feedViktims(), DelStash::killAll(), and DelStash::size().

Referenced by DelStash_test::run().

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

◆ checkAutoKill()

void checkAutoKill ( )
inlineprivate

Definition at line 176 of file del-stash-test.cpp.

References DelStash_test::feedViktims(), DelStash::kill(), DelStash::manage(), and DelStash::size().

Referenced by DelStash_test::run().

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

◆ checkCustomKill()

void checkCustomKill ( )
inlineprivate
Test:
use a custom-provided deleter function

a very specific setup, bound to mess up the checksum, unless the random bias is removed by the custom deleter function

Definition at line 206 of file del-stash-test.cpp.

References DelStash::kill(), DelStash::manage(), lib::rani(), and DelStash::size().

Referenced by DelStash_test::run().

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

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