aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/dentry.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/dentry.tests.cpp
parent106e9731aaf856f940592c02953e49a496555822 (diff)
downloadkernel-3b2f36d242eb895fd893ec7a674ff608f44f69ac.tar.xz
kernel-3b2f36d242eb895fd893ec7a674ff608f44f69ac.zip
refactoring
Diffstat (limited to 'kernel/src/filesystem/dentry.tests.cpp')
-rw-r--r--kernel/src/filesystem/dentry.tests.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/src/filesystem/dentry.tests.cpp b/kernel/src/filesystem/dentry.tests.cpp
index e9ecbc8..b7690f5 100644
--- a/kernel/src/filesystem/dentry.tests.cpp
+++ b/kernel/src/filesystem/dentry.tests.cpp
@@ -21,9 +21,9 @@ SCENARIO("Dentry construction", "[filesystem][dentry]")
THEN("the dentry has the correct parent, inode, and name")
{
- REQUIRE(child_dentry.get_parent() == parent_dentry);
+ REQUIRE(child_dentry.parent() == parent_dentry);
REQUIRE(child_dentry.get_inode() == inode);
- REQUIRE(child_dentry.get_name() == "child");
+ REQUIRE(child_dentry.name() == "child");
}
THEN("no flag is set")
@@ -46,9 +46,9 @@ SCENARIO("Dentry construction", "[filesystem][dentry]")
THEN("the dentry has a null parent, the correct inode, and the correct name")
{
- REQUIRE(child_dentry.get_parent() == nullptr);
+ REQUIRE(child_dentry.parent() == nullptr);
REQUIRE(child_dentry.get_inode() == inode);
- REQUIRE(child_dentry.get_name() == "child");
+ REQUIRE(child_dentry.name() == "child");
}
THEN("no flag is set")
@@ -142,9 +142,9 @@ SCENARIO("Dentry path resolution", "[filesystem][dentry]")
THEN("the full path is constructed correctly")
{
- REQUIRE(root_dentry->get_absolute_path() == "/");
- REQUIRE(home_dentry->get_absolute_path() == "/home");
- REQUIRE(user_dentry->get_absolute_path() == "/home/user");
+ REQUIRE(root_dentry->absolute_path() == "/");
+ REQUIRE(home_dentry->absolute_path() == "/home");
+ REQUIRE(user_dentry->absolute_path() == "/home/user");
}
}
} \ No newline at end of file