35#ifndef NEKTAR_TESTS_METRICREGEX_H
36#define NEKTAR_TESTS_METRICREGEX_H
84 std::vector<std::vector<MetricRegexFieldValue>>
m_matches;
92 bool v_Test(std::istream &pStdout, std::istream &pStderr)
override;
93 void v_Generate(std::istream &pStdout, std::istream &pStderr)
override;
Base class for all metrics. Metric represents a test metric that can be used to evaluate the function...
bool m_unordered
If true, regex matches may be in any order in output.
void v_Generate(std::istream &pStdout, std::istream &pStderr) override
Test output against a regex expression and set of matches.
MetricRegex(TiXmlElement *metric, bool generate)
Constructor.
std::vector< std::vector< MetricRegexFieldValue > > m_matches
Stores the multiple matches defined in each <MATCH> tag.
bool m_useStderr
If true, use stderr for testing/generation instead of stdout.
static MetricSharedPtr create(TiXmlElement *metric, bool generate)
std::regex m_regex
Storage for the boost regex.
bool v_Test(std::istream &pStdout, std::istream &pStderr) override
Test output against a regex expression and set of matches.
std::shared_ptr< Metric > MetricSharedPtr
A shared pointer to an EquationSystem object.
Data structure for a Regex value to match.
MetricRegexFieldValue(std::string value)