| 18 | namespace { |
| 19 | |
| 20 | static std::string encode( std::string const& str, Catch::XmlEncode::ForWhat forWhat = Catch::XmlEncode::ForTextNodes ) { |
| 21 | Catch::ReusableStringStream oss; |
| 22 | oss << Catch::XmlEncode( str, forWhat ); |
| 23 | return oss.str(); |
| 24 | } |
| 25 | |
| 26 | TEST_CASE( "XmlEncode", "[XML]" ) { |
| 27 | SECTION( "normal string" ) { |
no test coverage detected