Lumiera  0.pre.03
»edit your freedom«
command-argument-test.cpp File Reference

Go to the source code of this file.

Description

unit test CommandArgument_test

Definition in file command-argument-test.cpp.

#include "lib/test/run.hpp"
#include "lib/test/test-helper.hpp"
#include "steam/control/command-storage-holder.hpp"
#include "lib/scoped-ptrvect.hpp"
#include "lib/format-string.hpp"
#include "lib/format-cout.hpp"
#include "lib/util-foreach.hpp"
#include "lib/util.hpp"
#include <functional>
#include <sstream>
#include <cstdlib>
#include <string>
#include <tuple>

Classes

class  CommandArgument_test
 
struct  Sint5
 Dummy custom memento datatype. More...
 
struct  Tracker< TY >
 watching the instance creation of some parameter values More...
 

Typedefs

typedef lib::ScopedPtrVect< CmdClosure > ArgTuples
 

Functions

Tracker< string > captureState (Tracker< TimeVar >, Tracker< string > xstr, int)
 
void checkSerialisation (CmdClosure &clo)
 
void doIt (Tracker< TimeVar > time, Tracker< string > str, int rand)
 
int dummyC (int u, int o)
 
void dummyU (int, int, int)
 another dummy-UNDO function
 
 LAUNCHER (CommandArgument_test, "unit controller")
 Register this test class... More...
 
void prepareEmptyMemento ()
 prepare a (singleton) empty value for the memento. More...
 
void showIt (CmdClosure &clo)
 
int twoRandomDigits ()
 
void undoIt (Tracker< TimeVar > time, Tracker< string >, int, Tracker< string > memento)
 

Variables

ostringstream protocol
 used to verify the test function calls
 

Namespaces

 steam
 Steam-Layer implementation namespace root.
 
 steam::control
 Steam-Layer dispatcher, controller and administrative facilities.
 

Function Documentation

◆ LAUNCHER()

steam::control::test::LAUNCHER ( CommandArgument_test  ,
"unit controller"   
)

Register this test class...