aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/mount.tests.cpp
diff options
context:
space:
mode:
authorLukas Oesch <lukasoesch20@gmail.com>2026-05-16 16:12:36 +0200
committerLukas Oesch <lukasoesch20@gmail.com>2026-05-16 16:12:36 +0200
commit3b2f36d242eb895fd893ec7a674ff608f44f69ac (patch)
tree86d5515593b5e4dd937b20a626f9cf3a0d428cdd /kernel/src/filesystem/mount.tests.cpp
parent106e9731aaf856f940592c02953e49a496555822 (diff)
downloadkernel-3b2f36d242eb895fd893ec7a674ff608f44f69ac.tar.xz
kernel-3b2f36d242eb895fd893ec7a674ff608f44f69ac.zip
refactoring
Diffstat (limited to 'kernel/src/filesystem/mount.tests.cpp')
-rw-r--r--kernel/src/filesystem/mount.tests.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/src/filesystem/mount.tests.cpp b/kernel/src/filesystem/mount.tests.cpp
index e7dd709..6b66571 100644
--- a/kernel/src/filesystem/mount.tests.cpp
+++ b/kernel/src/filesystem/mount.tests.cpp
@@ -26,15 +26,15 @@ SCENARIO("Mount construction", "[filesystem][mount]")
THEN("the mount has the correct filesystem, root dentry, mount dentry, and mount path")
{
REQUIRE(mount.get_filesystem() == fs);
- REQUIRE(mount.get_root_dentry() == root_dentry);
- REQUIRE(mount.get_mount_dentry() == root_dentry);
- REQUIRE(mount.get_mount_path() == "/");
+ REQUIRE(mount.root_dentry() == root_dentry);
+ REQUIRE(mount.mount_dentry() == root_dentry);
+ REQUIRE(mount.mount_path() == "/");
REQUIRE(mount.is_ready_to_unmount());
}
THEN("the mount has no parent mount")
{
- REQUIRE(mount.get_parent_mount() == nullptr);
+ REQUIRE(mount.parent_mount() == nullptr);
}
}
@@ -63,19 +63,19 @@ SCENARIO("Mount reference counting", "[filesystem][mount]")
auto mount = kernel::filesystem::mount{root_dentry, root_dentry, fs, nullptr};
mount.increment_ref_count();
- REQUIRE(mount.get_ref_count() == 1);
+ REQUIRE(mount.ref_count() == 1);
REQUIRE_FALSE(mount.is_ready_to_unmount());
mount.increment_ref_count();
- REQUIRE(mount.get_ref_count() == 2);
+ REQUIRE(mount.ref_count() == 2);
REQUIRE_FALSE(mount.is_ready_to_unmount());
REQUIRE(mount.decrement_ref_count());
- REQUIRE(mount.get_ref_count() == 1);
+ REQUIRE(mount.ref_count() == 1);
REQUIRE_FALSE(mount.is_ready_to_unmount());
REQUIRE(mount.decrement_ref_count());
- REQUIRE(mount.get_ref_count() == 0);
+ REQUIRE(mount.ref_count() == 0);
REQUIRE(mount.is_ready_to_unmount());
}
@@ -84,7 +84,7 @@ SCENARIO("Mount reference counting", "[filesystem][mount]")
auto mount = kernel::filesystem::mount{root_dentry, root_dentry, fs, nullptr};
REQUIRE_FALSE(mount.decrement_ref_count());
- REQUIRE(mount.get_ref_count() == 0);
+ REQUIRE(mount.ref_count() == 0);
REQUIRE(mount.is_ready_to_unmount());
}
}