MCPcopy Create free account
hub / github.com/ElementsProject/elements / ToDescriptionString

Method ToDescriptionString

src/rpc/util.cpp:565–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565std::string RPCResults::ToDescriptionString() const
566{
567 std::string result;
568 for (const auto& r : m_results) {
569 if (r.m_type == RPCResult::Type::ANY) continue; // for testing only
570 if (r.m_cond.empty()) {
571 result += "\nResult:\n";
572 } else {
573 result += "\nResult (" + r.m_cond + "):\n";
574 }
575 Sections sections;
576 r.ToSections(sections);
577 result += sections.ToString();
578 }
579 return result;
580}
581
582std::string RPCExamples::ToDescriptionString() const
583{

Callers 2

PushMethod · 0.80
ToStringMethod · 0.80

Calls 6

ToSectionsMethod · 0.80
emptyMethod · 0.45
ToStringMethod · 0.45
sizeMethod · 0.45
indexMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected