29#ifndef COMMAND_TEST_DUMMY_COMMANDS_H
30#define COMMAND_TEST_DUMMY_COMMANDS_H
45 using std::ostringstream;
86 extern ostringstream
check_;
89 typedef function<string()>
FunS;
94 if (fail
and *fail)
throw External(
"simulated exception");
108 if (fail
and *fail)
throw External(
"simulated exception in UNDO");
Marker and Helper for writing Steam-Layer Command definitions.
Provision for setup of concrete commands for use by the UI.
Lumiera error handling (C++ interface).
LumieraError< LERR_(EXTERNAL)> External
void undoIt(int, int64_t oldVal)
void operate(int someVal)
int64_t check_
< test command just adding a given value
string capture(FunS, bool *)
void undoIt(FunS, bool *fail, string previousProtocol)
void operate(FunS func, bool *fail)
ulong check_
< test command with zero arguments
void undoIt(ulong oldVal)
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
A collection of frequently used helper functions to support unit testing.