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

Description

Test:
validate test support for render job planning and dispatch.

Definition at line 62 of file mock-support-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void verify_MockDispatcherSetup ()
 
void verify_MockJob ()
 
void verify_MockJobTicket ()
 
void verify_MockPrerequisites ()
 
void verify_MockSegmentation ()
 

Additional Inherited Members

- Public Member Functions inherited from Test
virtual void run (Arg arg)=0
 

Member Function Documentation

◆ simpleUsage()

void simpleUsage ( )
inlineprivate
Test:
simple usage example of the test helpers

Definition at line 79 of file mock-support-test.cpp.

◆ verify_MockJob()

void verify_MockJob ( )
inlineprivate
Test:
document and verify usage of a mock render job

Definition at line 103 of file mock-support-test.cpp.

◆ verify_MockJobTicket()

void verify_MockJobTicket ( )
inlineprivate
Test:
document and verify usage of a mock JobTicket for frame dispatch

Definition at line 127 of file mock-support-test.cpp.

References JobTicket::createJobFor(), INSTANCEOF, and JobTicket::NOP.

+ Here is the call graph for this function:

◆ verify_MockSegmentation()

void verify_MockSegmentation ( )
inlineprivate
Test:
document and verify usage of a complete mocked Segmentation to back frame dispatch
  • default constructed: empty Segmentation
  • cover the whole axis with one segment
  • partition axis and verify the association of generated jobs
  • a fully defined segment within an otherwise empty axis
  • complex partitioning (using the »split-splice« mechanism

Definition at line 158 of file mock-support-test.cpp.

References JobTicket::NOP.

◆ verify_MockPrerequisites()

void verify_MockPrerequisites ( )
inlineprivate
Test:
build a Segment with additional prerequisites, resulting in additional JobTickets to explore and additional prerequisite Jobs to build for each frame.

Definition at line 313 of file mock-support-test.cpp.

◆ verify_MockDispatcherSetup()

void verify_MockDispatcherSetup ( )
inlineprivate
Test:
verify setup of a mocked Dispatcher instance
  • by default, MockDispatcher generates a single segment to span the whole Time-axis and with some random yet valid pipeline-ID, so that a single job ticket can be generated for each port everywhere
  • in addition, it is possible to use the same specification language as for Segmentation to define a more complex (mock)processing graph
Note
lacklustre ModelPort handling: processing graph is just duplicated for each valid model port — not clear yet if we ever need something better...

Definition at line 390 of file mock-support-test.cpp.

References Dispatcher::createJobFor(), MockDispatcher::getDummyConnection(), MockDispatcher::resolveModelPort(), and MockDispatcher::verify().

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

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