9 namespace ix {
namespace util {
20 std::ostringstream Ostr;
21 Ostr <<
"#" << std::endl
24 <<
"Test # Comment" << std::endl
26 TestString1.assign(Ostr.str());
33 std::istringstream Istr(TestString1);
36 std::getline(Istr,line);
37 result.
UpdateResult(
"GetNextContent:CommentsAndWhiteSpace",
38 next_content ==
"Test ");
53 std::list<std::string>::iterator tni = test_names.begin();
54 while(tni != test_names.end())
56 std::string testname(*tni++);
57 if(testname ==
"GetNextContent")
virtual void Epilogue()
Clean up any test fixtures that need cleaning.
std::string GetNextContent(std::istream &In)
Defines MPI-specific parallel global and program classes.
void ProcessTests(std::list< std::string > &test_names, test::results &result)
Process named tests from a list and populate a "results" object.
Encapsulating class for collections of test results.
void Test__GetNextContent(test::results &result)
void Process(test::results &result)
Process all tests and populate a "results" object.
Testing constructs for unit testing.
void UpdateResult(const std::string &name, const ValueType &result)
Updates an existing test result.
void Prologue()
Set up the tests and any test fixture constructs.
Interface for a general testing object.