diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-10-07 20:56:33 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-10-19 00:13:47 +0200 |
| commit | 62a4abb9bf6551417130c3c6f9bba147930895ef (patch) | |
| tree | 51c6359faa7193e82c6fa8ee5402edb24d450ab1 /test/testdir.hh | |
| parent | 4f6e76493fb74f5385d5a14dce3a01c9901802ed (diff) | |
cfg: New module
Reads config files
Diffstat (limited to 'test/testdir.hh')
| -rw-r--r-- | test/testdir.hh | 22 |
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 |
