Gromacs  2021-sycl
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::IFileMatcher Class Referenceabstract

#include <testutils/filematchers.h>

Description

Represents a file matcher, matching file contents against reference (or other) data.

Typical pattern of declaring such matchers is to

Any method that then wants to accept a matcher can accept a IFileMatcherSettings.

Public Member Functions

virtual void checkFile (const std::string &path, TestReferenceChecker *checker)=0
 Matches contents of a file. More...
 

Member Function Documentation

virtual void gmx::test::IFileMatcher::checkFile ( const std::string &  path,
TestReferenceChecker checker 
)
pure virtual

Matches contents of a file.

Parameters
pathPath to the file to match.
checkerChecker to use for matching.

The method can change the state of the provided checker (e.g., by changing the default tolerance). The caller is responsible of providing a checker where such state changes do not matter.


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