Lumiera  0.pre.03
»edit your freedom«
TestTracking_test Class Reference

Description

Test:
verify proper working of test helpers to track automated clean-up and memory deallocation.
See also
TestHelper_test
tracking-dummy.hpp
tracking-allocator.hpp

Definition at line 46 of file test-tracking-test.cpp.

Private Member Functions

void demonstrate_checkAllocator ()
 
void demonstrate_checkObject ()
 
void demonstrate_logObject ()
 
void run (Arg)
 

Member Function Documentation

◆ demonstrate_logObject()

void demonstrate_logObject ( )
inlineprivate
Test:
capture object lifecycle events in the EventLog.
See also
EventLog_test
LateBindInstance_test

Definition at line 62 of file test-tracking-test.cpp.

◆ demonstrate_checkObject()

void demonstrate_checkObject ( )
inlineprivate
Test:
dummy object with a tracking checksum.

Definition at line 112 of file test-tracking-test.cpp.

◆ demonstrate_checkAllocator()

void demonstrate_checkAllocator ( )
inlineprivate
Test:
custom allocator to track memory handling
  • use the base allocator to perform raw memory allocation
  • demonstrate checksum and diagnostic functions
  • use a standard adapter to create objects with unique_ptr
  • use as custom allocator within STL containers
  • can use several distinct pools
  • swapping containers will move allocators alongside

Definition at line 167 of file test-tracking-test.cpp.

+ Inheritance diagram for TestTracking_test:
+ Collaboration diagram for TestTracking_test:

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