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

Description

Test:
verify sane behaviour of the relevant operations on the CommandRegistry interface.

Add/remove a command instance to the index, allocate an CommandImpl frame and verify it is removed properly on ref count zero.

Note
this test covers the internal bits of functionality, not the behaviour of the (integrated) command framework
See also
Command
CommandRegistry
command.cpp
command-use1-test.cpp

Definition at line 61 of file command-registry-test.cpp.

Private Member Functions

void checkAllocation (CommandRegistry &registry)
 
void checkRegistration (CommandRegistry &registry)
 
virtual void run (Arg)
 

Private Attributes

uint cnt_defs
 
uint cnt_inst
 

Member Function Documentation

◆ checkRegistration()

void checkRegistration ( CommandRegistry registry)
inlineprivate
Test:
verify the index operation.

Add, search, remove, store copy.

Definition at line 105 of file command-registry-test.cpp.

References CommandRegistry::queryIndex().

+ Here is the call graph for this function:

◆ checkAllocation()

void checkAllocation ( CommandRegistry registry)
inlineprivate
Test:
verify the allocation/de-allocation handling as embedded into the CommandRegistry operation.

Simulates on low level what normally happens during command lifecycle.

Definition at line 176 of file command-registry-test.cpp.

+ Inheritance diagram for CommandRegistry_test:
+ Collaboration diagram for CommandRegistry_test:

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