User Manual, Developers Guide and API Documentation

wns::testing Namespace Reference


Classes

class  DetailedListener
 Prints the name of each test and "OK" or "FAILED" plus the time needed for the test. More...

Functions

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


Function Documentation

bool wns::testing::compareFile ( const std::string  filename,
const std::string  regex 
)

Definition at line 38 of file TestTool.cpp.

bool wns::testing::compareString ( const std::string  content,
const std::string  regex,
bool  matchEntireContent 
)

Definition at line 52 of file TestTool.cpp.

bool wns::testing::matchInFile ( const std::string  filename,
std::vector< std::string >  regexps 
)

Definition at line 117 of file TestTool.cpp.

bool wns::testing::matchInFile ( const std::string  filename,
const std::string  regex 
)

Definition at line 105 of file TestTool.cpp.

bool wns::testing::matchInString ( const std::string  content,
std::vector< std::string >  regexps 
)

Definition at line 135 of file TestTool.cpp.

bool wns::testing::matchInString ( const std::string  content,
std::string  regex 
)

Definition at line 129 of file TestTool.cpp.


Generated on Sun May 27 03:33:06 2012 for openWNS by  doxygen 1.5.5