소스 검색

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

PiperOrigin-RevId: 247483339
main
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),

불러오는 중...
취소
저장