MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ReadFile

Function ReadFile

data/config/ConfigSchemaValidationTest.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#endif
32
33std::string ReadFile(const std::string& path) {
34 std::ifstream ifs(path);
35 EXPECT_TRUE(ifs.is_open()) << path;
36 std::stringstream buffer;
37 buffer << ifs.rdbuf();
38 return buffer.str();
39}
40
41std::string StringifyPointer(const rapidjson::Pointer& pointer) {
42 rapidjson::StringBuffer buffer;

Callers 2

TEST_FFunction · 0.70
TESTFunction · 0.70

Calls 2

is_openMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected