Gromacs  2019-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::MockModule Class Reference

#include <gromacs/commandline/tests/cmdlinemodulemanagertest.h>

+ Inheritance diagram for gmx::test::MockModule:
+ Collaboration diagram for gmx::test::MockModule:


Mock implementation of gmx::ICommandLineModule.

Public Member Functions

 MockModule (const char *name, const char *description)
 Creates a mock module with the given name and description.
const char * name () const override
 Returns the name of the module.
const char * shortDescription () const override
 Returns a one-line description of the module.
void setExpectedDisplayName (const char *expected)
 Sets the expected display name for writeHelp() calls.
- Public Member Functions inherited from gmx::ICommandLineModule
virtual void init (CommandLineModuleSettings *settings)=0
 Initializes the module and provides settings for the runner. More...
virtual int run (int argc, char *argv[])=0
 Runs the module with the given arguments. More...
virtual void writeHelp (const CommandLineHelpContext &context) const =0
 Prints help for the module. More...

The documentation for this class was generated from the following files: