{
public:
void initManager(const CommandLine &args);
- MockModule &addModule(const char *name, const char *description);
+ MockModule &addModule(const char *name, const char *description);
MockHelpTopic &addHelpTopic(const char *name, const char *title);
gmx::CommandLineModuleManager &manager() { return *manager_; }
const char *const cmdline[] = {
"g_test", "module", "-flag", "yes"
};
- CommandLine args(CommandLine::create(cmdline));
+ CommandLine args(CommandLine::create(cmdline));
initManager(args);
- MockModule &mod1 = addModule("module", "First module");
+ MockModule &mod1 = addModule("module", "First module");
addModule("other", "Second module");
using ::testing::_;
using ::testing::Args;
const char *const cmdline[] = {
"g_test", "help", "module"
};
- CommandLine args(CommandLine::create(cmdline));
+ CommandLine args(CommandLine::create(cmdline));
initManager(args);
- MockModule &mod1 = addModule("module", "First module");
+ MockModule &mod1 = addModule("module", "First module");
addModule("other", "Second module");
using ::testing::_;
EXPECT_CALL(mod1, writeHelp(_));
const char *const cmdline[] = {
"g_test", "help", "topic"
};
- CommandLine args(CommandLine::create(cmdline));
+ CommandLine args(CommandLine::create(cmdline));
initManager(args);
addModule("module", "First module");
MockHelpTopic &topic = addHelpTopic("topic", "Test topic");
const char *const cmdline[] = {
"g_module", "-flag", "yes"
};
- CommandLine args(CommandLine::create(cmdline));
+ CommandLine args(CommandLine::create(cmdline));
initManager(args);
- MockModule &mod1 = addModule("module", "First module");
+ MockModule &mod1 = addModule("module", "First module");
addModule("other", "Second module");
using ::testing::_;
using ::testing::Args;
const char *const cmdline[] = {
"/usr/local/gromacs/bin/g_module" GMX_BINARY_SUFFIX ".exe", "-flag", "yes"
};
- CommandLine args(CommandLine::create(cmdline));
+ CommandLine args(CommandLine::create(cmdline));
initManager(args);
- MockModule &mod1 = addModule("module", "First module");
+ MockModule &mod1 = addModule("module", "First module");
addModule("other", "Second module");
using ::testing::_;
using ::testing::Args;
const char *const cmdline[] = {
"g_test", "test", "-flag", "yes"
};
- CommandLine args(CommandLine::create(cmdline));
+ CommandLine args(CommandLine::create(cmdline));
initManager(args);
- MockModule &mod1 = addModule("test", "Test module");
+ MockModule &mod1 = addModule("test", "Test module");
addModule("other", "Second module");
using ::testing::_;
using ::testing::Args;