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

Description

Test:
verify abstraction wrapper to handle some char pointers in the way of a standard sequence container with iteration and range checks.
See also
path-array.hpp
UICoord_test
Navigator

Definition at line 52 of file path-array-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void verify_basics ()
 
void verify_iteration ()
 
void verify_boundaries ()
 
void verify_comparisons ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 56 of file path-array-test.cpp.

References PathArray_test::verify_basics(), PathArray_test::verify_boundaries(), PathArray_test::verify_comparisons(), and PathArray_test::verify_iteration().

+ Here is the call graph for this function:

◆ verify_basics()

void verify_basics ( )
inlineprivate

Definition at line 66 of file path-array-test.cpp.

References Symbol::EMPTY, and VERIFY_ERROR.

Referenced by PathArray_test::run().

+ Here is the caller graph for this function:

◆ verify_iteration()

void verify_iteration ( )
inlineprivate

Definition at line 109 of file path-array-test.cpp.

References PathArray< chunk_size >::begin(), Symbol::EMPTY, PathArray< chunk_size >::indexOf(), PathArray< chunk_size >::size(), and VERIFY_ERROR.

Referenced by PathArray_test::run().

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

◆ verify_boundaries()

void verify_boundaries ( )
inlineprivate
Test:
cover some tricky corner cases of the bound checks and normalisation routine.
Remarks
the container used for this test has an inline chunk size of 5, which means any further elements are in heap allocated extension storage. Normalisation seamlessly surpasses that boundary.

Definition at line 178 of file path-array-test.cpp.

References PathArray< chunk_size >::size().

Referenced by PathArray_test::run().

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

◆ verify_comparisons()

void verify_comparisons ( )
inlineprivate
Test:
verify equality comparison Equality of PathArray is based on overall size, position and normalised content.
Note
especially how "*" might match "" or nullptr at corresponding positions.

Definition at line 457 of file path-array-test.cpp.

Referenced by PathArray_test::run().

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

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