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

Function get_json

tests/document_test.cpp:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337static std::string get_json(const std::string& file) {
338 std::ifstream ifs;
339 std::stringstream ss;
340 ifs.open(file.data());
341 ss << ifs.rdbuf();
342 return ss.str();
343}
344
345static std::vector<std::string> get_all_jsons(const std::string& dirname) {
346 DIR* dir = opendir(dirname.c_str());

Callers 2

get_all_jsonsFunction · 0.70
TYPED_TESTFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected