aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/mount_table.tests.cpp
diff options
context:
space:
mode:
authorMarcel Braun <marcel.braun@ost.ch>2026-05-15 11:42:33 +0200
committerLukas Oesch <lukasoesch20@gmail.com>2026-05-16 11:56:07 +0200
commit963c926c68aac4606d80743aca8e7b052eee7efe (patch)
treec678534c823cf708cf4b840a4dfe6ddf12a49c60 /kernel/src/filesystem/mount_table.tests.cpp
parentfe0b38db0f8848da8cf28bb883e01bbbb889dd0a (diff)
downloadkernel-963c926c68aac4606d80743aca8e7b052eee7efe.tar.xz
kernel-963c926c68aac4606d80743aca8e7b052eee7efe.zip
Rename mount_table method from find_exact_mount to find_mount
Diffstat (limited to 'kernel/src/filesystem/mount_table.tests.cpp')
-rw-r--r--kernel/src/filesystem/mount_table.tests.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/src/filesystem/mount_table.tests.cpp b/kernel/src/filesystem/mount_table.tests.cpp
index 4ae8711..f22b25e 100644
--- a/kernel/src/filesystem/mount_table.tests.cpp
+++ b/kernel/src/filesystem/mount_table.tests.cpp
@@ -58,14 +58,14 @@ SCENARIO("Adding, finding and removing mounts in the mount table", "[filesystem]
THEN("finding mounts by exact valid path returns the correct mount")
{
- REQUIRE(table.find_exact_mount("/") == mount1);
- REQUIRE(table.find_exact_mount("/mnt") == mount2);
+ REQUIRE(table.find_mount("/") == mount1);
+ REQUIRE(table.find_mount("/mnt") == mount2);
}
THEN("finding mounts by exact invalid path returns null")
{
- REQUIRE(table.find_exact_mount("/nonexistent") == nullptr);
- REQUIRE(table.find_exact_mount("/mnt/file") == nullptr);
+ REQUIRE(table.find_mount("/nonexistent") == nullptr);
+ REQUIRE(table.find_mount("/mnt/file") == nullptr);
}
THEN("removing a mount that has no child mounts succeeds")
@@ -103,7 +103,7 @@ SCENARIO("Adding, finding and removing mounts in the mount table", "[filesystem]
THEN("finding mounts by exact valid path returns the correct mount")
{
- REQUIRE(table.find_exact_mount("/") == mount2);
+ REQUIRE(table.find_mount("/") == mount2);
}
THEN("removing the topmost mount with the same path succeeds")