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

Description

Test:
document and verify the engine::Dispatcher interface, used to translate a CalcStream into individual node jobs.

This test covers the definition of the interface itself, together with the supporting types and the default implementation of the basic operations. It uses a mock Dispatcher implementation.

See also
JobPlanningPipeline_test

Definition at line 58 of file dispatcher-interface-test.cpp.

Private Member Functions

void accessJobTicket ()
 
void pipelineBuilder ()
 
void resolveModelPort ()
 
virtual void run (Arg)
 

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

◆ resolveModelPort()

void resolveModelPort ( )
inlineprivate
Test:
the dispatcher can resolve a known ModelPort into the internal index number used on the Segmentation for the corresponding timeline (which exposes this ModelPort)

Definition at line 76 of file dispatcher-interface-test.cpp.

References MockDispatcher::getDummyConnection(), Pipe::query(), MockDispatcher::resolveModelPort(), and VERIFY_ERROR.

+ Here is the call graph for this function:

◆ accessJobTicket()

void accessJobTicket ( )
inlineprivate
Test:
the dispatcher knows how to pick the right JobTicket for each point on the timeline, and thus how to access the proper part of the render nodes responsible for rendering this part of the timeline

Definition at line 96 of file dispatcher-interface-test.cpp.

◆ pipelineBuilder()

void pipelineBuilder ( )
inlineprivate
Test:
for the actual use case, the dispatcher acts as entrance point to a job-planning pipeline builder, which in the end is an iterator to pull render jobs from
See also
JobPlanningPipeline_test for in-depth coverage of this complex topic

Definition at line 138 of file dispatcher-interface-test.cpp.

+ Inheritance diagram for DispatcherInterface_test:
+ Collaboration diagram for DispatcherInterface_test:

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