35#ifndef NEKTAR_TESTS_METRICREGEX_H
36#define NEKTAR_TESTS_METRICREGEX_H
39#include <boost/regex.hpp>
83 std::vector<std::vector<MetricRegexFieldValue>>
m_matches;
91 virtual bool v_Test(std::istream &pStdout, std::istream &pStderr);
92 virtual void v_Generate(std::istream &pStdout, std::istream &pStderr);
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.
boost::regex m_regex
Storage for the boost regex.
MetricRegex(TiXmlElement *metric, bool generate)
Constructor.
virtual void v_Generate(std::istream &pStdout, std::istream &pStderr)
Test output against a regex expression and set of matches.
virtual bool v_Test(std::istream &pStdout, std::istream &pStderr)
Test output against a regex expression and set of matches.
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)
The above copyright notice and this permission notice shall be included.
std::shared_ptr< Metric > MetricSharedPtr
A shared pointer to an EquationSystem object.
Data structure for a Regex value to match.
MetricRegexFieldValue(std::string value)