stub the new functions

This commit is contained in:
Fischlurch 2016-01-15 04:57:49 +01:00
parent b2e0c8fa63
commit 627b11dcb7
4 changed files with 61 additions and 1 deletions

View file

@ -104,6 +104,12 @@ namespace interact {
return GenNode(cmdID_, RESERVED_FOR_FUTURE_USE_);
}
string
getID() const
{
return cmdID_;
}
operator string() const
{
return "InvocationTrail cmd(\""+cmdID_+"\"";

View file

@ -39,8 +39,10 @@ using lib::idi::BareEntryID;
using gui::test::MockElm;
using lib::diff::GenNode;
using lib::diff::Rec;
using lib::time::Time;
using lib::time::TimeSpan;
using lib::hash::LuidH;
using lib::HashVal;
//using util::contains;
@ -175,7 +177,7 @@ namespace test {
commandInvocation ()
{
MARK_TEST_FUN
auto cmd = gui::test::Nexus::prepareMockCmd<string, TimeSpan, LUID>();
auto cmd = gui::test::Nexus::prepareMockCmd<string, TimeSpan, HashVal>();
MockElm mock("uiElm");

View file

@ -400,6 +400,20 @@ namespace test{
bool
Nexus::canInvoke(Cmd cmd)
{
UNIMPLEMENTED ("verify the given command is already bound and ready for invocation");
}
bool
Nexus::wasInvoked (Cmd cmd)
{
UNIMPLEMENTED ("verify the given command was indeed invoked at least once");
}
/**
* @return a defunct BusTerm with up-link to [ZombieNexus]

View file

@ -93,9 +93,47 @@ namespace test{
static void setCommandHandler (CommandHandler =CommandHandler());
static void setStateMarkHandler (StateMarkHandler =StateMarkHandler());
using Cmd = interact::InvocationTrail;
template<typename...ARGS>
static Cmd prepareMockCmd();
static bool canInvoke(Cmd);
static bool wasInvoked (Cmd);
template<typename...ARGS>
static bool wasBound (Cmd, ARGS const& ...args);
template<typename...ARGS>
static bool wasInvoked (Cmd, ARGS const& ...args);
};
template<typename...ARGS>
inline interact::InvocationTrail
Nexus::prepareMockCmd()
{
UNIMPLEMENTED("pick up arbitrary types and fabricate a mock command accepting those types");
}
template<typename...ARGS>
inline bool
Nexus::wasBound (Cmd cmd, ARGS const& ...args)
{
UNIMPLEMENTED("verify the denoted command was actually bound against the given concrete Arguments (String-match)");
}
template<typename...ARGS>
inline bool
Nexus::wasInvoked (Cmd cmd, ARGS const& ...args)
{
UNIMPLEMENTED("verify the denoted command was indeed invoked and received the given concrete Arguments (String-match)");
}
}} // namespace gui::test
#endif /*GUI_TEST_TEST_NEXUS_H*/