MCPcopy Create free account
hub / github.com/ElementsProject/elements / TEST

Function TEST

src/leveldb/db/recovery_test.cc:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156};
157
158TEST(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
174TEST(RecoveryTest, LargeManifestCompacted) {
175 if (!CanAppend()) {

Callers

nothing calls this directly

Calls 3

NewAppendableFileMethod · 0.45
AppendMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected