updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-10-31 17:22:12 -05:00
parent 3238b6d4de
commit f1f9e4547d
2 changed files with 99 additions and 82 deletions

View File

@ -264,6 +264,23 @@ TEST(utils_path, create_api_path) {
EXPECT_STREQ("/.state/.local", s.c_str());
}
TEST(utils_path, get_parent_api_path) {
auto s = utils::path::get_parent_api_path("");
EXPECT_STREQ("/", s.c_str());
s = utils::path::get_parent_api_path("/");
EXPECT_STREQ("/", s.c_str());
s = utils::path::get_parent_api_path("/moose");
EXPECT_STREQ("/", s.c_str());
s = utils::path::get_parent_api_path("/moose/cow");
EXPECT_STREQ("/moose", s.c_str());
s = utils::path::get_parent_api_path("/moose/cow/");
EXPECT_STREQ("/moose", s.c_str());
}
TEST(utils_path, finalize) {
auto s = utils::path::finalize("");
EXPECT_STREQ("", s.c_str());