blob: b59e09a69c382192694a6743f9a44e53f4a217f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|