Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lib::time::test::anonymous_namespace{time-control-test.cpp} Namespace Reference

Classes

struct  IterationEnd
 
struct  TestCase
 
struct  TestChange
 
struct  TestChange< QuTime >
 
struct  TestChange< TimeSpan >
 
class  TestListener
 Mock object to receive change notifications. More...
 
struct  TestTarget
 
struct  TestTarget< QuTime >
 
struct  TestTarget< TimeSpan >
 

Functions

string pop (Arg arg)
 
template<class T >
bool isDuration ()
 
template<class T >
bool isQuTime ()
 
template<class T >
TimeValue materialise (T const &someTime)
 
TimeValue materialise (QuTime const &alignedTime)
 
template<class TAR , class SRC >
void ____verify_wasChanged (TAR const &target, TimeValue const &org, SRC const &change)
 
void ____verify_wasChanged (Duration const &target, TimeValue const &org, Duration const &otherDuration)
 
void ____verify_wasChanged (Duration const &target, TimeValue const &org, TimeSpan const &span_as_change)
 
void ____verify_wasChanged (TimeSpan const &target, TimeValue const &org, Duration const &changedDur)
 
template<class TAR >
void ____verify_wasOffset (TAR const &target, TAR const &refState, Offset const &offset)
 
template<class TAR >
void ____verify_wasOffsetBack (TAR const &target, TAR const &refState)
 
template<class TAR >
void ____verify_nudged (TAR const &target, TAR const &refState, FrameCnt offsetSteps)
 
template<>
void ____verify_nudged (QuTime const &target, QuTime const &refState, FrameCnt offsetSteps)
 
template<class TAR , class SRC >
void ____verify_notification (TAR const &target, TestListener< SRC > const &follower)
 
void ____verify_notification (TimeSpan const &targetTimeSpan, TestListener< Duration > const &follower)
 
void ____verify_notification (Duration const &target, TestListener< Duration > const &follower)
 
void ____verify_notification (Duration const &targetDuration, TestListener< TimeSpan > const &follower)
 

Function Documentation

◆ pop()

string pop ( Arg  arg)
inline

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

References pop().

Referenced by pop().

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

◆ isDuration()

template<class T >
bool isDuration ( )
inlineprivate

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

◆ isQuTime()

template<class T >
bool isQuTime ( )
inlineprivate

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

References isQuTime().

Referenced by isQuTime().

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

◆ materialise() [1/2]

template<class T >
TimeValue materialise ( T const &  someTime)
inlineprivate

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

References materialise().

Referenced by ____verify_notification(), ____verify_nudged(), ____verify_wasChanged(), materialise(), and materialise().

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

◆ materialise() [2/2]

TimeValue materialise ( QuTime const &  alignedTime)
inlineprivate

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

References materialise().

+ Here is the call graph for this function:

◆ ____verify_wasChanged() [1/4]

template<class TAR , class SRC >
void ____verify_wasChanged ( TAR const &  target,
TimeValue const &  org,
SRC const &  change 
)
private

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

References ____verify_wasChanged(), and materialise().

Referenced by ____verify_wasChanged(), ____verify_wasChanged(), ____verify_wasChanged(), ____verify_wasChanged(), and TestCase< TAR, SRC, BASE >::performTestSequence().

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

◆ ____verify_wasChanged() [2/4]

void ____verify_wasChanged ( Duration const &  target,
TimeValue const &  org,
Duration const &  otherDuration 
)
private

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

References ____verify_wasChanged().

+ Here is the call graph for this function:

◆ ____verify_wasChanged() [3/4]

void ____verify_wasChanged ( Duration const &  target,
TimeValue const &  org,
TimeSpan const &  span_as_change 
)
private

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

References ____verify_wasChanged(), and TimeSpan::duration().

+ Here is the call graph for this function:

◆ ____verify_wasChanged() [4/4]

void ____verify_wasChanged ( TimeSpan const &  target,
TimeValue const &  org,
Duration const &  changedDur 
)
private

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

References ____verify_wasChanged(), and TimeSpan::duration().

+ Here is the call graph for this function:

◆ ____verify_wasOffset()

template<class TAR >
void ____verify_wasOffset ( TAR const &  target,
TAR const &  refState,
Offset const &  offset 
)
private

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

References ____verify_wasOffset().

Referenced by ____verify_wasOffset(), and TestCase< TAR, SRC, BASE >::performTestSequence().

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

◆ ____verify_wasOffsetBack()

template<class TAR >
void ____verify_wasOffsetBack ( TAR const &  target,
TAR const &  refState 
)
private

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

References ____verify_wasOffsetBack().

Referenced by ____verify_wasOffsetBack(), and TestCase< TAR, SRC, BASE >::performTestSequence().

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

◆ ____verify_nudged() [1/2]

template<class TAR >
void ____verify_nudged ( TAR const &  target,
TAR const &  refState,
FrameCnt  offsetSteps 
)
private

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

References ____verify_nudged().

Referenced by ____verify_nudged(), ____verify_nudged(), and TestCase< TAR, SRC, BASE >::performTestSequence().

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

◆ ____verify_nudged() [2/2]

template<>
void ____verify_nudged ( QuTime const &  target,
QuTime const &  refState,
FrameCnt  offsetSteps 
)
private

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

References ____verify_nudged(), materialise(), and FrameRate::PAL.

+ Here is the call graph for this function:

◆ ____verify_notification() [1/4]

template<class TAR , class SRC >
void ____verify_notification ( TAR const &  target,
TestListener< SRC > const &  follower 
)
private

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

References ____verify_notification(), materialise(), Duration::NIL, and TestListener< TI >::receivedValue().

Referenced by ____verify_notification(), ____verify_notification(), ____verify_notification(), ____verify_notification(), and TestCase< TAR, SRC, BASE >::performTestSequence().

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

◆ ____verify_notification() [2/4]

void ____verify_notification ( TimeSpan const &  targetTimeSpan,
TestListener< Duration > const &  follower 
)
private

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

References ____verify_notification(), TimeSpan::duration(), and TestListener< TI >::receivedValue().

+ Here is the call graph for this function:

◆ ____verify_notification() [3/4]

void ____verify_notification ( Duration const &  target,
TestListener< Duration > const &  follower 
)
private

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

References ____verify_notification(), and TestListener< TI >::receivedValue().

+ Here is the call graph for this function:

◆ ____verify_notification() [4/4]

void ____verify_notification ( Duration const &  targetDuration,
TestListener< TimeSpan > const &  follower 
)
private

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

References ____verify_notification(), TestListener< TI >::receivedValue(), and Time::ZERO.

+ Here is the call graph for this function: