Lumiera  0.pre.03
»edit your freedom«
placeholder-command.hpp File Reference

Go to the source code of this file.

Description

Generate fake commands with stub operations and the ability to verify invocation.

This helper for unit testing of UI interactions might serve as dummy placeholder, or be used to mock some operation expected to happen within Steam-Layer. The test::Nexus offers a convenience front-end to install such an placeholder operation and use it as counterpart for some tested elements connected to the UI-bus.

The actual operation is void of any functionality, but might be installed to accept arbitrary predetermined argument bindings, and to verify invocation and passed arguments.

See also
BusTerm_test
test::Nexus::prepareMockCmd

Definition in file placeholder-command.hpp.

#include "lib/error.hpp"
#include "lib/symbol.hpp"
#include "lib/idi/genfunc.hpp"
#include "lib/test/event-log.hpp"
#include "steam/control/command-def.hpp"
#include "lib/format-util.hpp"
#include <vector>
#include <string>

Classes

class  PlaceholderCommand< ARGS >
 Set of stub command operations. More...
 

Namespaces

 stage
 Lumiera GTK UI implementation root.