| 10 | |
| 11 | Y_UNIT_TEST_SUITE(TTempFileHandle) { |
| 12 | Y_UNIT_TEST(Create) { |
| 13 | TString path; |
| 14 | { |
| 15 | TTempFileHandle tmp; |
| 16 | path = tmp.Name(); |
| 17 | tmp.Write("hello world\n", 12); |
| 18 | tmp.FlushData(); |
| 19 | UNIT_ASSERT_STRINGS_EQUAL(TUnbufferedFileInput(tmp.Name()).ReadAll(), "hello world\n"); |
| 20 | } |
| 21 | UNIT_ASSERT(!NFs::Exists(path)); |
| 22 | } |
| 23 | |
| 24 | Y_UNIT_TEST(InCurrentDir) { |
| 25 | #ifndef _win32_ |
nothing calls this directly
no test coverage detected