OTest2
A C++ testing framework
|
Go to the documentation of this file.
32 const std::string& prefix_) :
35 assert(os !=
nullptr);
41 void TestMarkFormatterIOS::printLine(
42 const std::string& prefix_,
43 const std::string& label_,
47 std::ostringstream oss_;
48 oss_ << prefix << prefix_;
49 for(
int i_(0); i_ < indent_; ++i_)
53 oss_ << label_ <<
": ";
60 void TestMarkFormatterIOS::setTextForeground(
65 void TestMarkFormatterIOS::setTextStyle(
70 void TestMarkFormatterIOS::resetTextAttributes() {
75 const std::string& label_,
78 printLine(
" ", label_, mark_, indent_,
true);
82 const std::string& label_,
85 printLine(
" ", label_, mark_, indent_,
false);
89 const std::string& label_,
93 printLine(
"- ", label_, mark_, indent_,
true);
94 resetTextAttributes();
98 const std::string& label_,
102 printLine(
"- ", label_, mark_, indent_,
false);
103 resetTextAttributes();
107 const std::string& label_,
111 printLine(
"+ ", label_, mark_, indent_,
true);
112 resetTextAttributes();
116 const std::string& label_,
120 printLine(
"+ ", label_, mark_, indent_,
false);
121 resetTextAttributes();
126 *os <<
" ......... \n";
127 resetTextAttributes();
Style
Style of shown text.
void printOpen(std::ostream &os_, const std::string &prefix_) const
Print opening of the node into a stream.
Color
List of colors supported by the reporters.
void printClose(std::ostream &os_, const std::string &prefix_) const
Print closing of the node into a stream.
Generic interface of a test mark node.