| 51 | |
| 52 | template <typename TStream> |
| 53 | std::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 | |
| 62 | template <typename TStream, typename TPath> |
| 63 | TStream OpenAndValidate(const TPath arg1) |
no outgoing calls
no test coverage detected