aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/dentry.tests.cpp
diff options
context:
space:
mode:
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