aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/mount.tests.cpp
diff options
context:
space:
mode:
authorMarcel Braun <marcel.braun@ost.ch>2026-05-16 17:04:15 +0200
committerMarcel Braun <marcel.braun@ost.ch>2026-05-16 17:04:15 +0200
commit2ac578a90aaf5076f9b725b8a1a2c139075b9528 (patch)
treebb8bf76908079f53daa532486d8c003bed969894 /kernel/src/filesystem/mount.tests.cpp
parent106e9731aaf856f940592c02953e49a496555822 (diff)
parent3d8ea5b1b833f39b77f0591fb2a301842ed5eb1c (diff)
downloadkernel-2ac578a90aaf5076f9b725b8a1a2c139075b9528.tar.xz
kernel-2ac578a90aaf5076f9b725b8a1a2c139075b9528.zip
Merge branch 'refactoring' into 'develop-BA-FS26'
refactoring See merge request teachos/kernel!38
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());
}
}