Gromacs  2018.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Protected Member Functions
gmx::test::TrajectoryAnalysisModuleTestFixture< ModuleInfo > Class Template Reference

#include <gromacs/trajectoryanalysis/tests/moduletest.h>

+ Inheritance diagram for gmx::test::TrajectoryAnalysisModuleTestFixture< ModuleInfo >:
+ Collaboration diagram for gmx::test::TrajectoryAnalysisModuleTestFixture< ModuleInfo >:

Description

template<class ModuleInfo>
class gmx::test::TrajectoryAnalysisModuleTestFixture< ModuleInfo >

Test fixture for a trajectory analysis module.

Template Parameters
ModuleInfoInfo object for the analysis module to test.

ModuleInfo should provide a static TrajectoryAnalysisModulePointer create() method.

Protected Member Functions

virtual
TrajectoryAnalysisModulePointer 
createModule ()
 Constructs the analysis module to be tested.
 

Additional Inherited Members

- Public Member Functions inherited from gmx::test::AbstractTrajectoryAnalysisModuleTestFixture
void setTopology (const char *filename)
 Sets the topology file to use for the test. More...
 
void setTrajectory (const char *filename)
 Sets the trajectory file to use for the test. More...
 
void includeDataset (const char *name)
 Includes only specified dataset for the test. More...
 
void excludeDataset (const char *name)
 Excludes specified dataset from the test. More...
 
void setDatasetTolerance (const char *name, const FloatingPointTolerance &tolerance)
 Sets a custom tolerance for checking a dataset. More...
 
void runTest (const CommandLine &args)
 Runs the analysis module with the given additional options. More...
 
- Public Member Functions inherited from gmx::test::CommandLineTestBase
void setInputFile (const char *option, const char *filename)
 Sets an input file. More...
 
void setInputFileContents (const char *option, const char *extension, const std::string &contents)
 Generates and sets an input file. More...
 
void setInputFileContents (const char *option, const char *extension, const ArrayRef< const char *const > &contents)
 Generates and sets an input file. More...
 
void setOutputFile (const char *option, const char *filename, const ITextBlockMatcherSettings &matcher)
 Sets an output file parameter and adds it to the set of tested files. More...
 
void setOutputFile (const char *option, const char *filename, const IFileMatcherSettings &matcher)
 Sets an output file parameter and adds it to the set of tested files. More...
 
CommandLinecommandLine ()
 Returns the internal CommandLine object used to construct the command line for the test. More...
 
TestFileManagerfileManager ()
 Returns the internal TestFileManager object used to manage the files. More...
 
TestReferenceChecker rootChecker ()
 Returns the root reference data checker. More...
 
void setDefaultTolerance (const FloatingPointTolerance &tolerance)
 Sets the tolerance for floating-point comparisons. More...
 
void testWriteHelp (ICommandLineModule *module)
 Checks the output of writeHelp() against reference data.
 
void checkOutputFiles ()
 Checks output files added with setOutputFile() against reference data. More...
 

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