| 56 | |
| 57 | Y_UNIT_TEST_SUITE(TFsPathTests) { |
| 58 | Y_UNIT_TEST(TestMkDirs) { |
| 59 | const TFsPath path = "a/b/c/d/e/f"; |
| 60 | path.ForceDelete(); |
| 61 | TFsPath current = path; |
| 62 | ui32 checksCounter = 0; |
| 63 | while (current != ".") { |
| 64 | UNIT_ASSERT(!path.Exists()); |
| 65 | ++checksCounter; |
| 66 | current = current.Parent(); |
| 67 | } |
| 68 | UNIT_ASSERT_VALUES_EQUAL(checksCounter, 6); |
| 69 | |
| 70 | path.MkDirs(); |
| 71 | UNIT_ASSERT(path.Exists()); |
| 72 | |
| 73 | current = path; |
| 74 | while (current != ".") { |
| 75 | UNIT_ASSERT(path.Exists()); |
| 76 | current = current.Parent(); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | Y_UNIT_TEST(MkDirFreak) { |
| 81 | TFsPath path; |
nothing calls this directly
no test coverage detected