User Manual, Developers Guide and API Documentation

TestTool.cpp File Reference

#include <WNS/testing/TestTool.hpp>
#include <iostream>
#include <fstream>
#include <sstream>
#include <sys/types.h>
#include <regex.h>

Include dependency graph for TestTool.cpp:

Go to the source code of this file.

Functions

bool wns::testing::compareFile (const std::string filename, const std::string regex)
 Match a file against a regular expression.
bool wns::testing::compareString (const std::string content, const std::string regex, bool matchEntireContent=true)
 Match a string against a regular expression.
bool wns::testing::matchInFile (const std::string filename, std::vector< std::string > regexps)
 Check whether a file matches a list of regexps.
bool wns::testing::matchInFile (const std::string filename, const std::string regex)
 Check whether a file matches a regexp.
bool wns::testing::matchInString (const std::string content, std::vector< std::string > regexps)
 Check whether a string matches a list of regexps.
bool wns::testing::matchInString (const std::string content, const std::string regex)
 Check whether a string matches a regexp.


Generated on Sat May 26 03:32:19 2012 for openWNS by  doxygen 1.5.5