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

Function test_queries

test/path_unit_test.cpp:841–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839// test_queries --------------------------------------------------------------------//
840
841void test_queries()
842{
843 std::cout << "testing queries..." << std::endl;
844
845 path p1("");
846 path p2("//netname/foo.doo");
847
848 CHECK(p1.empty());
849 CHECK(!p1.has_root_path());
850 CHECK(!p1.has_root_name());
851 CHECK(!p1.has_root_directory());
852 CHECK(!p1.has_relative_path());
853 CHECK(!p1.has_parent_path());
854 CHECK(!p1.has_filename());
855 CHECK(!p1.has_stem());
856 CHECK(!p1.has_extension());
857 CHECK(!p1.is_absolute());
858 CHECK(p1.is_relative());
859
860 CHECK(!p2.empty());
861 CHECK(p2.has_root_path());
862 CHECK(p2.has_root_name());
863 CHECK(p2.has_root_directory());
864 CHECK(p2.has_relative_path());
865 CHECK(p2.has_parent_path());
866 CHECK(p2.has_filename());
867 CHECK(p2.has_stem());
868 CHECK(p2.has_extension());
869 CHECK(p2.is_absolute());
870 CHECK(!p2.is_relative());
871}
872
873// test_imbue_locale ---------------------------------------------------------------//
874

Callers 1

test_mainFunction · 0.85

Calls 11

has_root_pathMethod · 0.80
has_root_nameMethod · 0.80
has_root_directoryMethod · 0.80
has_relative_pathMethod · 0.80
has_parent_pathMethod · 0.80
has_filenameMethod · 0.80
has_stemMethod · 0.80
has_extensionMethod · 0.80
is_absoluteMethod · 0.80
is_relativeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected