diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2022-04-07 15:13:33 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2022-04-07 15:13:33 +0200 |
commit | 033916a4f9d3fd19659a3bc8c5737f52d327b3d4 (patch) | |
tree | fe795df0ea57745db17818d8e3694ead23c1752d /test/buildtool/file_system/file_root.test.cpp | |
parent | 45c2639a2df99b8387ad88bc039ca20e26117120 (diff) | |
download | justbuild-033916a4f9d3fd19659a3bc8c5737f52d327b3d4.tar.gz |
refactor FileRoot::DirectoryEntries
... to foster the implementation of the built-in target "TREE"
Diffstat (limited to 'test/buildtool/file_system/file_root.test.cpp')
-rw-r--r-- | test/buildtool/file_system/file_root.test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/buildtool/file_system/file_root.test.cpp b/test/buildtool/file_system/file_root.test.cpp index b0dad5d1..b776b5e3 100644 --- a/test/buildtool/file_system/file_root.test.cpp +++ b/test/buildtool/file_system/file_root.test.cpp @@ -64,12 +64,12 @@ void TestFileRootReadEntries(FileRoot const& root, auto entries = root.ReadDirectory(path); CHECK_FALSE(entries.Empty()); - CHECK(entries.Contains("foo")); - CHECK(entries.Contains("bar")); + CHECK(entries.ContainsFile("foo")); + CHECK(entries.ContainsFile("bar")); if (has_baz) { - CHECK(entries.Contains("baz")); + CHECK_FALSE(entries.ContainsFile("baz")); } - CHECK_FALSE(entries.Contains("does_not_exist")); + CHECK_FALSE(entries.ContainsFile("does_not_exist")); } void TestFileRootReadDirectory(FileRoot const& root) { |