Gromacs
2021-beta2-UNCHECKED
|
#include <testutils/textblockmatchers.h>
Use an exact text match after scrubbing lines of the text that match the supplied regular expressions.
This suits comparing files in tests that are intended to be localized by reporting usage, time, date, user, or file-system stamps. The latter won't be reproducible in tests until the tools that emit them can be mocked suitably.
Public Member Functions | |
FilteringExactTextMatch (std::vector< std::string > linesToSkip) | |
Constructor. | |
TextBlockMatcherPointer | createMatcher () const override |
Factory method. | |
void | addRegexToSkip (const std::string &lineToSkip) |
Add a regular expression for which a matching line should be skipped. | |