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

Function OpenAndValidate

test/cpp_test_repo/D/Utility.h:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template <typename TStream, typename TPath>
63TStream OpenAndValidate(const TPath arg1)
64{
65 auto fs = TStream(arg1);
66 if (!fs) {
67 std::stringstream ss;
68 ss << "���Դ��ļ�" << arg1 << "ʱ��������" << StreamStatusToString(fs);
69 throw Exception(ss.str());
70 }
71 return fs;
72}
73
74// �����״̬����ȷ�ԡ��������ȷ����������쳣��
75template <typename TStream>

Callers

nothing calls this directly

Calls 2

StreamStatusToStringFunction · 0.70
ExceptionClass · 0.70

Tested by

no test coverage detected