| 39 | class TestEnvironment { |
| 40 | public: |
| 41 | string createTempDir() { |
| 42 | string tmpPath = GetTempDirectory() + string("et_test_XXXXXXXX"); |
| 43 | const string dir = string(mkdtemp(&tmpPath[0])); |
| 44 | |
| 45 | temporaryDirs.push_back(dir); |
| 46 | return dir; |
| 47 | } |
| 48 | |
| 49 | FileInfo getFileInfo(const string& name) { |
| 50 | struct stat fileStat; |
no test coverage detected