MCPcopy Create free account
hub / github.com/Persper/code-analytics / StreamStatusToString

Function StreamStatusToString

test/cpp_test_repo/D/Utility.h:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename TStream>
53std::string StreamStatusToString(const TStream& stream)
54{
55 std::string status = stream.good() ? "good " : "";
56 if (stream.eof()) status += "eof ";
57 if (stream.bad()) status += "bad ";
58 if (stream.fail()) status += "fail ";
59 return status;
60}
61
62template <typename TStream, typename TPath>
63TStream OpenAndValidate(const TPath arg1)

Callers 2

OpenAndValidateFunction · 0.70
ValidateStreamFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected