![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <WNS/testing/TestTool.hpp>#include <iostream>#include <fstream>#include <sstream>#include <sys/types.h>#include <regex.h>

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. | |
1.5.5