Lumiera  0.pre.03
»edityourfreedom«
DummyJob Struct Reference

#include "/Werk/devel/lumi/tests/core/backend/engine/dummy-job.hpp"

Description

Test helper: generate test dummy jobs with built-in diagnostics.

Each invocation of such a dummy job will be logged internally and can be investigated and verified afterwards.

Definition at line 48 of file dummy-job.hpp.

Static Public Member Functions

static Job build ()
 uses random job definition values More...
 
static Job build (Time nominalTime, int additionalKey)
 
static Time invocationTime (Job const &job)
 
static bool was_invoked (Job const &job)
 

Member Function Documentation

◆ build() [1/2]

Job build ( )
static

uses random job definition values

Definition at line 153 of file dummy-job.cpp.

References InvocationInstanceID::metaInfo, and lib::test::randTime().

Referenced by SchedulerInterface_test::specifyJobs(), JobHash_test::verify_job_identity(), SchedulerInterface_test::verify_job_specification_variations(), JobHash_test::verify_simple_job_properties(), and SchedulerInterface_test::verify_simple_job_specification().

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

◆ build() [2/2]

Job build ( Time  nominalTime,
int  additionalKey 
)
static

Definition at line 166 of file dummy-job.cpp.

References InvocationInstanceID::metaInfo.

◆ was_invoked()

bool was_invoked ( Job const &  job)
static

Definition at line 177 of file dummy-job.cpp.

References Time::NEVER, and Job::usesClosure().

Referenced by JobHash_test::verify_simple_job_properties().

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

◆ invocationTime()

Time invocationTime ( Job const &  job)
static

Definition at line 186 of file dummy-job.cpp.

References Job::usesClosure().

Referenced by JobHash_test::verify_simple_job_properties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Collaboration diagram for DummyJob:

The documentation for this struct was generated from the following files: