refactor
This commit is contained in:
parent
fc7c6b9705
commit
a4693f8acc
@ -26,7 +26,7 @@
|
||||
namespace repertory {
|
||||
TYPED_TEST_CASE(fuse_test, fuse_provider_types);
|
||||
|
||||
TYPED_TEST(fuse_test, can_chmod_if_owner) {
|
||||
TYPED_TEST(fuse_test, chmod_can_chmod_if_owner) {
|
||||
std::string file_name{"chmod_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
@ -41,7 +41,7 @@ TYPED_TEST(fuse_test, can_chmod_if_owner) {
|
||||
this->unlink_file_and_test(file_path);
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test, can_not_chmod_if_not_owner) {
|
||||
TYPED_TEST(fuse_test, chmod_can_not_chmod_if_not_owner) {
|
||||
std::string file_name{"chmod_test"};
|
||||
auto file_path = this->create_root_file(file_name);
|
||||
|
||||
@ -51,7 +51,7 @@ TYPED_TEST(fuse_test, can_not_chmod_if_not_owner) {
|
||||
this->unlink_root_file(file_path);
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test, can_not_chmod_setgid_if_not_root) {
|
||||
TYPED_TEST(fuse_test, chmod_can_not_chmod_setgid_if_not_root) {
|
||||
std::string file_name{"chmod_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
@ -61,7 +61,7 @@ TYPED_TEST(fuse_test, can_not_chmod_setgid_if_not_root) {
|
||||
this->unlink_file_and_test(file_path);
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test, can_not_chmod_setuid_if_not_root) {
|
||||
TYPED_TEST(fuse_test, chmod_can_not_chmod_setuid_if_not_root) {
|
||||
std::string file_name{"chmod_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
namespace repertory {
|
||||
TYPED_TEST_CASE(fuse_test, fuse_provider_types);
|
||||
|
||||
TYPED_TEST(fuse_test, can_not_chmod_set_sticky_if_not_root) {
|
||||
TYPED_TEST(fuse_test, chown_can_not_chmod_set_sticky_if_not_root) {
|
||||
std::string file_name{"chown_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
@ -36,7 +36,8 @@ TYPED_TEST(fuse_test, can_not_chmod_set_sticky_if_not_root) {
|
||||
this->unlink_file_and_test(file_path);
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test, can_chown_group_if_owner_and_a_member_of_the_group) {
|
||||
TYPED_TEST(fuse_test,
|
||||
chown_can_chown_group_if_owner_and_a_member_of_the_group) {
|
||||
std::string file_name{"chown_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
@ -55,7 +56,7 @@ TYPED_TEST(fuse_test, can_chown_group_if_owner_and_a_member_of_the_group) {
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test,
|
||||
can_not_chown_group_if_owner_but_not_a_member_of_the_group) {
|
||||
chown_can_not_chown_group_if_owner_but_not_a_member_of_the_group) {
|
||||
std::string file_name{"chown_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
@ -73,7 +74,7 @@ TYPED_TEST(fuse_test,
|
||||
this->unlink_file_and_test(file_path);
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test, can_not_chown_group_if_not_the_owner) {
|
||||
TYPED_TEST(fuse_test, chown_can_not_chown_group_if_not_the_owner) {
|
||||
std::string file_name{"chown_test"};
|
||||
auto file_path = this->create_root_file(file_name);
|
||||
|
||||
@ -91,7 +92,7 @@ TYPED_TEST(fuse_test, can_not_chown_group_if_not_the_owner) {
|
||||
this->unlink_root_file(file_path);
|
||||
}
|
||||
|
||||
TYPED_TEST(fuse_test, can_not_chown_user_if_not_root) {
|
||||
TYPED_TEST(fuse_test, chown_can_not_chown_user_if_not_root) {
|
||||
std::string file_name{"chown_test"};
|
||||
auto file_path = this->create_file_and_test(file_name);
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
namespace repertory {
|
||||
TYPED_TEST_CASE(fuse_test, fuse_provider_types);
|
||||
|
||||
TYPED_TEST(fuse_test, can_create_and_remove_directory) {
|
||||
TYPED_TEST(fuse_test, directory_can_create_and_remove_directory) {
|
||||
auto dir_name = std::string{"dir"};
|
||||
|
||||
auto dir_path = utils::path::combine(this->mount_location, {dir_name});
|
||||
|
Loading…
x
Reference in New Issue
Block a user