MCPcopy Create free account
hub / github.com/boostorg/filesystem / check_native

Function check_native

test/path_unit_test.cpp:91–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89void check_native(const path& p, const string&, const wstring& expected, const char* file, int line)
90#else
91void check_native(const path& p, const string& expected, const wstring&, const char* file, int line)
92#endif
93{
94 if (p.native() == expected)
95 return;
96
97 ++::boost::detail::test_errors();
98
99 std::cout << file << '(' << line << "): native() is not equal expected\n"
100 " native---: "
101 << std::hex;
102 path::string_type nat(p.native());
103 for (path::string_type::const_iterator it = nat.begin(); it != nat.end(); ++it)
104 std::cout << long(*it) << ' ';
105 std::cout << "\n expected-: ";
106 for (path::string_type::const_iterator it = expected.begin(); it != expected.end(); ++it)
107 std::cout << long(*it) << ' ';
108 std::cout << std::dec << std::endl;
109}
110
111template< class T1, class T2 >
112void check_equal(const T1& value, const T2& expected, const char* file, int line)

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected