]> git.localhorst.tv Git - blank.git/blob - tst/io/FilesystemTest.hpp
somewhat self-cleaning temp dir
[blank.git] / tst / io / FilesystemTest.hpp
1 #ifndef BLANK_TEST_IO_FILESYSTEMTEST_HPP
2 #define BLANK_TEST_IO_FILESYSTEMTEST_HPP
3
4 #include "io/filesystem.hpp"
5
6 #include <memory>
7 #include <string>
8 #include <cppunit/extensions/HelperMacros.h>
9
10
11 namespace blank {
12 namespace test {
13
14 class FilesystemTest
15 : public CppUnit::TestFixture {
16
17 CPPUNIT_TEST_SUITE(FilesystemTest);
18
19 CPPUNIT_TEST(testFile);
20 CPPUNIT_TEST(testDirectory);
21
22 CPPUNIT_TEST_SUITE_END();
23
24 public:
25         void setUp();
26         void tearDown();
27
28         void testFile();
29         void testDirectory();
30
31 private:
32         std::unique_ptr<TempDir> test_dir;
33
34 };
35
36 }
37 }
38
39 #endif