Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::TrajectoryFrameWriterTest Class Reference
+ Inheritance diagram for gmx::test::TrajectoryFrameWriterTest:
+ Collaboration diagram for gmx::test::TrajectoryFrameWriterTest:

Description

Test fixture to test different file types are supported by the CoordinateFile.

Public Member Functions

void basicTest (const char *filename)
 Test basic behaviour without special requirements. More...
 
void testWithRequirements (const char *filename, const OutputRequirements &requirements)
 Test with extra requirements. More...
 
- Public Member Functions inherited from gmx::test::ModuleTest
TrajectoryFrameWriterPointer runTest (const char *filename, const OutputRequirements &requirements)
 Run the builder to create an TrajectoryFrameWriter during tests. More...
 
void addTopology ()
 Add topology information to test if needed.
 
- Public Member Functions inherited from gmx::test::CommandLineTestBase
void setInputFile (const char *option, const char *filename)
 Sets an input file. More...
 
void setInputFile (const char *option, const std::string &filename)
 Sets an input file. More...
 
void setModifiableInputFile (const char *option, const char *filename)
 Sets an input file that may be modified. The file is copied to a temporary file, which is used as the test input. More...
 
void setModifiableInputFile (const char *option, const std::string &filename)
 Sets an input file that may be modified. The file is copied to a temporary file, which is used as the test input. 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...
 
void setInputAndOutputFile (const char *option, const char *filename, const ITextBlockMatcherSettings &matcher)
 Sets a file parameter that is used for input and modified as output. The input file is copied to a temporary file that is used as input and can be modified.
 
void setInputAndOutputFile (const char *option, const char *filename, const IFileMatcherSettings &matcher)
 Sets a file parameter that is used for input and modified as output. The input file is copied to a temporary file that is used as input and can be modified. 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...
 

Additional Inherited Members

- Public Attributes inherited from gmx::test::ModuleTest
TopologyInformation dummyTopology_
 Dummy topology to use to create CoordinateFile.
 
Selection dummySelection_
 Dummy selection.
 

Member Function Documentation

void gmx::test::TrajectoryFrameWriterTest::basicTest ( const char *  filename)
inline

Test basic behaviour without special requirements.

Parameters
[in]filenameName for output file.
void gmx::test::TrajectoryFrameWriterTest::testWithRequirements ( const char *  filename,
const OutputRequirements requirements 
)
inline

Test with extra requirements.

Parameters
[in]filenameName for output file.
[in]requirementsSpecify extra reqs for output.

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