| 20 | class VersionEditTest {}; |
| 21 | |
| 22 | TEST(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 |
nothing calls this directly
no test coverage detected