MCPcopy Create free account
hub / github.com/catchorg/Catch2 / encode

Function encode

tests/SelfTest/IntrospectiveTests/Xml.tests.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace {
19
20static 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
26TEST_CASE( "XmlEncode", "[XML]" ) {
27 SECTION( "normal string" ) {

Callers 1

Xml.tests.cppFile · 0.85

Calls 2

XmlEncodeClass · 0.50
strMethod · 0.45

Tested by

no test coverage detected