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

Description

Test:
verify correct behaviour of an display "Digxel": A self-contained numeric element to support building displays.
  • build a Digxel
  • set a value
  • retrieve formatted display
  • verify comparisons and increments
  • performing side-effects from the setter-functor
  • formatted value caching

Definition at line 137 of file digxel-test.cpp.

Private Member Functions

void checkCopy ()
 
void checkDisplayOverrun ()
 
void checkMutation ()
 
void checkSimpleUsage ()
 
virtual void run (Arg arg)
 
void timingMeasurements ()
 
void verifyAssignMutatingOperators ()
 
void verifyComparisons ()
 
void verifyMutatorInfluence ()
 

Member Function Documentation

◆ verifyAssignMutatingOperators()

void verifyAssignMutatingOperators ( )
inlineprivate
Test:
verify the self-assigning increment/decrement operators.
Note
especially these need to invoke the mutator function, much like a direct assignment. We use a special mutator to protocol the previous / new value.

Definition at line 232 of file digxel-test.cpp.

◆ checkDisplayOverrun()

void checkDisplayOverrun ( )
inlineprivate
Test:
Digxel should be protected against display buffer overrun

Definition at line 311 of file digxel-test.cpp.

◆ timingMeasurements()

void timingMeasurements ( )
inlineprivate
Test:
perform several timing measurements and especially verify the effect of caching formatted values.

Digxel avoids reformatting unchanged values; besides that it is possible to install a "mutator" functor for invoking all kinds of special behaviour on value changes. Of course doing so comes with a (considerable) price tag....

Note
the measurement especially show the effects of locality, which can vary largely over several runs.

Definition at line 336 of file digxel-test.cpp.

+ Inheritance diagram for Digxel_test:
+ Collaboration diagram for Digxel_test:

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