MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReadFileIntoString

Function ReadFileIntoString

serving/processor/tests/graph_optimizer_test.cc:36–46  ·  view source on GitHub ↗

Only for testing

Source from the content-addressed store, hash-verified

34
35// Only for testing
36std::string ReadFileIntoString(
37 const std::string& filename) {
38 std::ifstream ifile(filename);
39 std::ostringstream buf;
40 char ch;
41 while(buf && ifile.get(ch)) {
42 buf.put(ch);
43 }
44
45 return buf.str();
46}
47
48} // namespace
49

Callers 1

mainFunction · 0.70

Calls 2

getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected