瀏覽代碼

Added unit test for InternalKey::DecodeFrom with empty string.

PiperOrigin-RevId: 247483339
ld
Chris Mumford 5 年之前
父節點
當前提交
85cd40d108
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      db/dbformat_test.cc

+ 6
- 0
db/dbformat_test.cc 查看文件

@ -65,6 +65,12 @@ TEST(FormatTest, InternalKey_EncodeDecode) {
}
}
TEST(FormatTest, InternalKey_DecodeFromEmpty) {
InternalKey internal_key;
ASSERT_TRUE(!internal_key.DecodeFrom(""));
}
TEST(FormatTest, InternalKeyShortSeparator) {
// When user keys are same
ASSERT_EQ(IKey("foo", 100, kTypeValue),

Loading…
取消
儲存