diff options
| author | Marcel Braun <marcel.braun@ost.ch> | 2026-05-16 17:04:15 +0200 |
|---|---|---|
| committer | Marcel Braun <marcel.braun@ost.ch> | 2026-05-16 17:04:15 +0200 |
| commit | 2ac578a90aaf5076f9b725b8a1a2c139075b9528 (patch) | |
| tree | bb8bf76908079f53daa532486d8c003bed969894 /kernel/src/filesystem/dentry.tests.cpp | |
| parent | 106e9731aaf856f940592c02953e49a496555822 (diff) | |
| parent | 3d8ea5b1b833f39b77f0591fb2a301842ed5eb1c (diff) | |
| download | kernel-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/dentry.tests.cpp')
| -rw-r--r-- | kernel/src/filesystem/dentry.tests.cpp | 14 |
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 |
