| 51 | }; |
| 52 | |
| 53 | TEST_F(NvmCacheStateTest, FreshStart) { |
| 54 | auto dir = getCacheDir(); |
| 55 | NvmCacheState s(util::getCurrentTimeSec(), dir, false /* encryption */, |
| 56 | false /* truncateAllocSize */); |
| 57 | |
| 58 | // directory is empty at this point |
| 59 | ASSERT_FALSE(s.shouldDropNvmCache()); |
| 60 | ASSERT_FALSE(s.wasCleanShutDown()); |
| 61 | } |
| 62 | |
| 63 | TEST_F(NvmCacheStateTest, ClearState) { |
| 64 | auto dir = getCacheDir(); |
nothing calls this directly
no test coverage detected