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

Function make_preferred_tests

test/path_test.cpp:2642–2658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2640// make_preferred_tests ------------------------------------------------------------//
2641
2642void make_preferred_tests()
2643{
2644 std::cout << "make_preferred_tests..." << std::endl;
2645
2646 if (platform == "Windows")
2647 {
2648#if BOOST_FILESYSTEM_VERSION == 3
2649 BOOST_TEST(path("//abc\\def/ghi").make_preferred().native() == path("\\\\abc\\def\\ghi").native());
2650#else
2651 BOOST_TEST(path("//abc\\def/ghi").make_preferred().native() == path("//abc\\def\\ghi").native());
2652#endif
2653 }
2654 else
2655 {
2656 BOOST_TEST(path("//abc\\def/ghi").make_preferred().native() == path("//abc\\def/ghi").native());
2657 }
2658}
2659
2660// generic_path_tests --------------------------------------------------------------//
2661

Callers 1

cpp_mainFunction · 0.85

Calls 1

pathFunction · 0.70

Tested by

no test coverage detected