From f610505e905a368e40f2b8cc459b0ad264fefebf Mon Sep 17 00:00:00 2001 From: user Date: Sun, 19 Jul 2026 16:45:42 +0400 Subject: [PATCH] test: add namespace for test helpers --- tests/helpers/scoped_file.hpp | 4 ++++ tests/helpers/scoped_file_test.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/helpers/scoped_file.hpp b/tests/helpers/scoped_file.hpp index b1fa85a..fc1c30d 100644 --- a/tests/helpers/scoped_file.hpp +++ b/tests/helpers/scoped_file.hpp @@ -4,6 +4,8 @@ #include #include +namespace helpers { + class ScopedFile { public: explicit ScopedFile(std::string fileName) : fileName_(std::move(fileName)) {} @@ -25,3 +27,5 @@ public: private: std::string fileName_; }; + +} // namespace helpers diff --git a/tests/helpers/scoped_file_test.cpp b/tests/helpers/scoped_file_test.cpp index efc1054..b28546f 100644 --- a/tests/helpers/scoped_file_test.cpp +++ b/tests/helpers/scoped_file_test.cpp @@ -8,6 +8,8 @@ namespace { +using namespace helpers; + void testFileRemovedAfterScope() { const std::string fileName = "scoped_file_test.log";