Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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

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

Member Function Documentation

◆ random_or_get()

raw_time_64 random_or_get ( Arg  arg)
inlineprivate

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

References lib::rani().

Referenced by TimeValue_test::run().

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

◆ run()

◆ 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 Time::MAX, and Time::MIN.

Referenced by TimeValue_test::run().

+ Here is the caller 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, and Time::MIN.

Referenced by TimeValue_test::run().

+ Here is the caller 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.

Referenced by TimeValue_test::run().

+ Here is the caller graph for this function:

◆ 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 Time::ZERO.

Referenced by TimeValue_test::run().

+ Here is the caller graph for this function:

◆ verify_invalidFramerateProtection()

void verify_invalidFramerateProtection ( )
inlineprivate

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

References FrameRate::approx(), Time::MAX, FrameRate::PAL, and VERIFY_ERROR.

Referenced by TimeValue_test::run().

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

◆ createOffsets()

void createOffsets ( TimeValue  org)
inlineprivate

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

References Offset::abs(), and FrameRate::PAL.

Referenced by TimeValue_test::run().

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

◆ buildDuration()

void buildDuration ( TimeValue  org)
inlineprivate

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

References Offset::abs(), FrameRate::asDouble(), Duration::NIL, FrameRate::NTSC, and FrameRate::PAL.

Referenced by TimeValue_test::run().

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

◆ verify_extremeValues()

void verify_extremeValues ( )
inlineprivate

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

References Time::MAX, Duration::MAX, and Time::MIN.

Referenced by TimeValue_test::run().

+ Here is the caller graph for this function:

◆ verify_fractionalOffset()

void verify_fractionalOffset ( )
inlineprivate

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

References Time::ZERO.

Referenced by TimeValue_test::run().

+ Here is the caller graph for this function:

◆ buildTimeSpan()

void buildTimeSpan ( TimeValue  org)
inlineprivate

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

References TimeSpan::end().

Referenced by TimeValue_test::run().

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

◆ compareTimeSpan()

void compareTimeSpan ( Time const &  org)
inlineprivate

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

References TimeSpan::duration(), TimeSpan::end(), and TimeSpan::start().

Referenced by TimeValue_test::run().

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

◆ relateTimeIntervals()

void relateTimeIntervals ( TimeValue  org)
inlineprivate

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

References TimeSpan::contains(), and TimeSpan::end().

Referenced by TimeValue_test::run().

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

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