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

Description

Test:
verify handling of time values, time intervals.
  • creating times and time intervals
  • comparisons
  • time arithmetics

Definition at line 45 of file time-value-test.cpp.

Private Member Functions

void buildDuration (TimeValue org)
 
void buildTimeSpan (TimeValue org)
 
void checkBasicTimeValues (TimeValue org)
 
void checkMutableTime (TimeValue org)
 
void checkTimeConvenience (TimeValue org)
 
void checkTimeHash (TimeValue org)
 
void compareTimeSpan (Time const &org)
 
void createOffsets (TimeValue org)
 
gavl_time_t random_or_get (Arg arg)
 
void relateTimeIntervals (TimeValue org)
 
virtual void run (Arg arg)
 
void verify_extremeValues ()
 
void verify_fractionalOffset ()
 
void verify_invalidFramerateProtection ()
 

Member Function Documentation

◆ checkBasicTimeValues()

void checkBasicTimeValues ( TimeValue  org)
inlineprivate
Test:
creating some time values and performing trivial comparisons.
Note
you can't do much beyond that, because TimeValues as such are a "dead end": they are opaque and can't be altered.

Definition at line 85 of file time-value-test.cpp.

References lib::test::anonymous_namespace{builder-qualifier-support-test.cpp}::one().

+ Here is the call graph for this function:

◆ checkMutableTime()

void checkMutableTime ( TimeValue  org)
inlineprivate
Test:
time variables can be used for the typical calculations, like summing and subtracting values, as well as multiplication with a scale factor.

Additionally, the raw time value is accessible by conversion.

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

References Time::MAX, lib::test::anonymous_namespace{builder-qualifier-support-test.cpp}::one(), and lib::test::anonymous_namespace{builder-qualifier-support-test.cpp}::two().

+ Here is the call graph for this function:

◆ checkTimeConvenience()

void checkTimeConvenience ( TimeValue  org)
inlineprivate
Test:
additional convenience shortcuts supported especially by the canonical Time values.

Definition at line 160 of file time-value-test.cpp.

References TimeValue::SCALE.

◆ checkTimeHash()

void checkTimeHash ( TimeValue  org)
inlineprivate
Test:
calculate a generic hash value from a time spec

Definition at line 201 of file time-value-test.cpp.

References VERIFY_ERROR.

+ Inheritance diagram for TimeValue_test:
+ Collaboration diagram for TimeValue_test:

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