Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TimeControl_test Class Reference

Description

Test:
use the time::Control to push a sequence of modifications to various time entities; in all cases, a suitable change should be imposed to the target and then a notification signal should be invoked.

After covering a simple basic case, this test uses template metaprogramming techniques to build a matrix of all possible type combinations and then performs a standard test sequence for each of these type combinations. Within this test sequence, verification functions are invoked, which are defined with specialisations to adapt for the various types to be covered.

Definition at line 121 of file time-control-test.cpp.

Private Member Functions

raw_time_64 random_or_get (string arg)
 
virtual void run (Arg arg)
 
void verifyBasics ()
 
void verifyMatrix_of_MutationCases (TimeValue const &o, TimeValue const &c)
 

Member Function Documentation

◆ random_or_get()

raw_time_64 random_or_get ( string  arg)
inlineprivate

Definition at line 124 of file time-control-test.cpp.

References lib::rani(), and TimeValue::SCALE.

Referenced by TimeControl_test::run().

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

◆ run()

virtual void run ( Arg  arg)
inlineprivatevirtual

Definition at line 134 of file time-control-test.cpp.

References TimeGrid::build(), FrameRate::NTSC, FrameRate::PAL, TimeControl_test::random_or_get(), TimeControl_test::verifyBasics(), TimeControl_test::verifyMatrix_of_MutationCases(), and Time::ZERO.

+ Here is the call graph for this function:

◆ verifyBasics()

void verifyBasics ( )
inlineprivate

Definition at line 154 of file time-control-test.cpp.

References TimeSpan::accept(), Control< TI >::connectChangeNotification(), VERIFY_ERROR, and Time::ZERO.

Referenced by TimeControl_test::run().

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

◆ verifyMatrix_of_MutationCases()

void verifyMatrix_of_MutationCases ( TimeValue const &  o,
TimeValue const &  c 
)
private
Test:
cover all possible combinations of input change values and target time value entities to be handled by time::Control. Each of these cases executes a standard test sequence, which is defined in TestCase::performTestSequence

Definition at line 476 of file time-control-test.cpp.

Referenced by TimeControl_test::run().

+ Here is the caller graph for this function:
+ Inheritance diagram for TimeControl_test:
+ Collaboration diagram for TimeControl_test:

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