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

Function TEST

src/leveldb/db/version_edit_test.cc:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20class VersionEditTest {};
21
22TEST(VersionEditTest, EncodeDecode) {
23 static const uint64_t kBig = 1ull << 50;
24
25 VersionEdit edit;
26 for (int i = 0; i < 4; i++) {
27 TestEncodeDecode(edit);
28 edit.AddFile(3, kBig + 300 + i, kBig + 400 + i,
29 InternalKey("foo", kBig + 500 + i, kTypeValue),
30 InternalKey("zoo", kBig + 600 + i, kTypeDeletion));
31 edit.DeleteFile(4, kBig + 700 + i);
32 edit.SetCompactPointer(i, InternalKey("x", kBig + 900 + i, kTypeValue));
33 }
34
35 edit.SetComparatorName("foo");
36 edit.SetLogNumber(kBig + 100);
37 edit.SetNextFile(kBig + 200);
38 edit.SetLastSequence(kBig + 1000);
39 TestEncodeDecode(edit);
40}
41
42} // namespace leveldb
43

Callers

nothing calls this directly

Calls 9

TestEncodeDecodeFunction · 0.85
InternalKeyClass · 0.85
AddFileMethod · 0.80
SetCompactPointerMethod · 0.80
SetComparatorNameMethod · 0.80
SetLogNumberMethod · 0.80
SetNextFileMethod · 0.80
DeleteFileMethod · 0.45
SetLastSequenceMethod · 0.45

Tested by

no test coverage detected