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

Function compare_tests

test/path_test.cpp:2875–2898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2873 }
2874
2875void compare_tests()
2876{
2877 COMPARE_TEST(fs::path("foo"), fs::path("zoo"))
2878 COMPARE_TEST("foo", "zoo")
2879 COMPARE_TEST(std::string("foo"), std::string("zoo"))
2880 COMPARE_TEST(derived_from_path("foo"), derived_from_path("zoo"))
2881 COMPARE_TEST(boost::container::string("foo"), boost::container::string("zoo"))
2882 COMPARE_TEST(pcustom_string("foo"), pcustom_string("zoo"))
2883 COMPARE_TEST(boost::string_view("foo"), boost::string_view("zoo"))
2884#if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
2885 COMPARE_TEST(std::string_view("foo"), std::string_view("zoo"))
2886#endif
2887
2888 COMPARE_TEST("/foo", "foo")
2889 COMPARE_TEST("/a/b", "foo")
2890 COMPARE_TEST("/foo", "/zoo")
2891 COMPARE_TEST("/foo", "/foo/bar")
2892
2893 if (platform == "Windows")
2894 {
2895 COMPARE_TEST("c:\\foo", "d:\\foo")
2896 COMPARE_TEST("c:\\foo", "c:\\zoo")
2897 }
2898}
2899
2900inline void odr_use(const path::value_type& c)
2901{

Callers 1

cpp_mainFunction · 0.85

Calls 3

stringFunction · 0.85
derived_from_pathClass · 0.85
pathFunction · 0.70

Tested by

no test coverage detected