| 156 | }; |
| 157 | |
| 158 | TEST(RecoveryTest, ManifestReused) { |
| 159 | if (!CanAppend()) { |
| 160 | fprintf(stderr, "skipping test because env does not support appending\n"); |
| 161 | return; |
| 162 | } |
| 163 | ASSERT_OK(Put("foo", "bar")); |
| 164 | Close(); |
| 165 | std::string old_manifest = ManifestFileName(); |
| 166 | Open(); |
| 167 | ASSERT_EQ(old_manifest, ManifestFileName()); |
| 168 | ASSERT_EQ("bar", Get("foo")); |
| 169 | Open(); |
| 170 | ASSERT_EQ(old_manifest, ManifestFileName()); |
| 171 | ASSERT_EQ("bar", Get("foo")); |
| 172 | } |
| 173 | |
| 174 | TEST(RecoveryTest, LargeManifestCompacted) { |
| 175 | if (!CanAppend()) { |
nothing calls this directly
no test coverage detected