updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user