summaryrefslogtreecommitdiff
path: root/test/testdir.hh
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdir.hh')
-rw-r--r--test/testdir.hh22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/testdir.hh b/test/testdir.hh
new file mode 100644
index 0000000..b59e09a
--- /dev/null
+++ b/test/testdir.hh
@@ -0,0 +1,22 @@
+#ifndef TESTDIR_HH
+#define TESTDIR_HH
+
+#include <filesystem> // IWYU pragma: export
+
+class TestDir {
+ public:
+ TestDir();
+ ~TestDir();
+
+ TestDir(TestDir const&) = delete;
+ TestDir& operator=(TestDir const&) = delete;
+
+ bool good() const { return !path_.empty(); };
+
+ std::filesystem::path const& path() const { return path_; };
+
+ private:
+ std::filesystem::path path_;
+};
+
+#endif // TESTDIR_HH