Lumiera  0.pre.03
»edit your freedom«
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 107 of file del-stash-test.cpp.

Private Member Functions

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

Member Function Documentation

◆ 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 219 of file del-stash-test.cpp.

+ Inheritance diagram for DelStash_test:
+ Collaboration diagram for DelStash_test:

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