Refactored command line parser to be more cohesive

Also added a set of unit tests for them (incomplete)
This commit is contained in:
Phil Nash
2012-05-31 19:40:26 +01:00
parent 06e959be3e
commit 163088a11f
12 changed files with 605 additions and 416 deletions

View File

@@ -99,7 +99,7 @@ namespace Catch {
std::string m_indent;
std::ostringstream m_log;
std::set<std::string> m_recorders;
};
};
class EmbeddedRunner {
@@ -112,7 +112,7 @@ namespace Catch {
std::string getOutput() {
return m_output;
}
const Totals& getTotals() const {
return m_totals;
}
@@ -124,7 +124,7 @@ namespace Catch {
std::string getLog() const {
return m_reporter->getLog();
}
private:
Totals m_totals;
std::string m_output;