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

Description

Test:
verify test helper for engine tests: a dummy data frame.

TestFrame instances can be created right away, without any external library dependencies. A test frame is automatically filled with random data; multiple frames are arranged in sequences and channels, causing the random data to be reproducible yet different in each frame.

To ease writing unit tests, TestFrame provides comparison and assignment and tracks lifecycle automatically. As tests regarding the engine typically have to deal with buffer management, an arbitrary memory location can be interpreted as TestFrame and checked for corruption.

Definition at line 67 of file testframe-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void useFrameTable ()
 
void verifyDataContent ()
 
void verifyFrameLifecycle ()
 
void verifyFrameSeries ()
 

Additional Inherited Members

- Public Member Functions inherited from Test
virtual ~Test ()=default
 this is an interface
 
lib::Random makeRandGen ()
 build a dedicated new RandomGen, seeded from the default-Gen
 
virtual void run (Arg arg)=0
 
void seedRand ()
 draw a new random seed from a common nucleus, and re-seed the default-Gen.
 
- Static Public Member Functions inherited from Test
static string firstTok (Arg)
 conveniently pick the first token from the argument line
 
static uint firstVal (Arg, uint=1)
 conveniently use some number given as argument, with optional default
 

Member Function Documentation

◆ verifyFrameSeries()

void verifyFrameSeries ( )
inlineprivate
Test:
build sequences of test frames, organised into multiple families (channels).

Verify that adjacent frames hold differing data

Definition at line 199 of file testframe-test.cpp.

◆ useFrameTable()

void useFrameTable ( )
inlineprivate
Test:
the table of test frames computed on demand

Definition at line 229 of file testframe-test.cpp.

References steam::engine::test::testData().

+ Here is the call graph for this function:
+ Inheritance diagram for TestFrame_test:
+ Collaboration diagram for TestFrame_test:

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