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

#include <testutils/loggertest.h>

Description

Helper class for tests to check output written to a logger.

Public Member Functions

const MDLoggerlogger ()
 Returns the logger to pass to code under test.
 
void expectEntryMatchingRegex (gmx::MDLogger::LogLevel level, const char *re)
 Expects a log entry at a given level matching a given regex. More...
 

Member Function Documentation

void gmx::test::LoggerTestHelper::expectEntryMatchingRegex ( gmx::MDLogger::LogLevel  level,
const char *  re 
)

Expects a log entry at a given level matching a given regex.

Currently, the order of the entries is not checked, and if this method is called once for a log level, then it needs to be called for all entries produced by the test.

If not called for a log level, all entries for that level are accepted.


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