Lumiera
0.pre.03
»edit your freedom«
|
#include "/Werk/devel/lumi/tests/core/steam/engine/mock-dispatcher.hpp"
Mock setup for a render Job with NO action but built-in diagnostics.
Each invocation of such a MockJob will be logged internally and can be investigated and verified afterwards.
Definition at line 94 of file mock-dispatcher.hpp.
Public Member Functions | |
MockJob (Time nominalTime, int additionalKey) | |
Public Member Functions inherited from Job | |
Job (JobClosure &specificJobDefinition, InvocationInstanceID invoKey, Time nominalFrameTime) | |
InvocationInstanceID | getInvocationInstanceID () const |
JobKind | getKind () const |
find out about the classification of this job. More... | |
Time | getNominalTime () const |
void | triggerJob () const |
bool | usesClosure (JobClosure const &) const |
Static Public Member Functions | |
static JobClosure & | getFunctor () |
static int | invocationAdditionalKey (Job const &job) |
static Time | invocationNominalTime (Job const &job) |
static Time | invocationTime (Job const &job) |
static bool | isNopJob (Job const &) |
static bool | was_invoked (Job const &job) |
Static Private Member Functions | |
static Job | build () |
uses random job definition values | |
static Job | build (Time nominalTime, int additionalKey) |
|
static |
likewise to support the MockDispatcher diagnostics; locate here since this is a dedicated translation unit
true
iff the job was defined in the typical way used by JobTicket to generate fill jobs for empty segments. Definition at line 249 of file mock-dispatcher.cpp.
|
static |
for collaboration with other Mock/Dummy facilities
Definition at line 237 of file mock-dispatcher.cpp.
References steam::engine::test::anonymous_namespace{mock-dispatcher.cpp}::dummyClosure.