Lumiera  0.pre.03
»edit your freedom«
time-control-test.cpp File Reference

Go to the source code of this file.

Description

unit test TimeControl_test

Definition in file time-control-test.cpp.

#include "lib/test/run.hpp"
#include "lib/test/test-helper.hpp"
#include "lib/time/timevalue.hpp"
#include "lib/time/timequant.hpp"
#include "lib/time/control.hpp"
#include "lib/meta/generator-combinations.hpp"
#include "steam/asset/meta/time-grid.hpp"
#include "lib/scoped-holder.hpp"
#include "lib/format-cout.hpp"
#include "lib/util.hpp"
#include <boost/lexical_cast.hpp>
#include <string>
#include <limits>

Classes

struct  IterationEnd
 
struct  TestCase< TAR, SRC, BASE >
 
struct  TestChange< SRC >
 
struct  TestChange< QuTime >
 
struct  TestChange< TimeSpan >
 
class  TestListener< TI >
 Mock object to receive change notifications. More...
 
struct  TestTarget< TAR >
 
struct  TestTarget< QuTime >
 
struct  TestTarget< TimeSpan >
 
class  TimeControl_test
 

Functions

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)
 
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_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 T >
bool isDuration ()
 
template<class T >
bool isQuTime ()
 
 LAUNCHER (TimeControl_test, "unit common")
 Register this test class... More...
 
template<class T >
TimeValue materialise (T const &someTime)
 
TimeValue materialise (QuTime const &alignedTime)
 
string pop (Arg arg)
 

Namespaces

 lib
 Implementation namespace for support and library code.
 

Function Documentation

◆ LAUNCHER()

lib::time::test::LAUNCHER ( TimeControl_test  ,
"unit common"   
)

Register this test class...