MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / Dump

Method Dump

tests/document_test.cpp:437–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435 Check check;
436 bool has_error;
437 std::string Dump() const {
438 // dump as the form of std::initializer_list
439 std::string s = "Path {";
440 for (const auto& i : path) {
441 if (i.IsStr()) {
442 s += '"' + i.GetStr() + "\",";
443 } else {
444 s += std::to_string(i.GetNum()) + ',';
445 }
446 }
447 if (!path.empty()) {
448 s.pop_back();
449 }
450 s += '}';
451 return s + " Json: " + json;
452 }
453 };
454 constexpr static bool kNoError = false;
455 constexpr static bool kError = true;

Callers 3

mainFunction · 0.80
TestSuccessFunction · 0.80
TYPED_TESTFunction · 0.80

Calls 2

IsStrMethod · 0.80
GetNumMethod · 0.80

Tested by

no test coverage detected