Added unit test for InternalKey::DecodeFrom with empty string.
PiperOrigin-RevId: 247483339
This commit is contained in:
parent
1aae5c9f29
commit
85cd40d108
@ -65,6 +65,12 @@ TEST(FormatTest, InternalKey_EncodeDecode) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(FormatTest, InternalKey_DecodeFromEmpty) {
|
||||||
|
InternalKey internal_key;
|
||||||
|
|
||||||
|
ASSERT_TRUE(!internal_key.DecodeFrom(""));
|
||||||
|
}
|
||||||
|
|
||||||
TEST(FormatTest, InternalKeyShortSeparator) {
|
TEST(FormatTest, InternalKeyShortSeparator) {
|
||||||
// When user keys are same
|
// When user keys are same
|
||||||
ASSERT_EQ(IKey("foo", 100, kTypeValue),
|
ASSERT_EQ(IKey("foo", 100, kTypeValue),
|
||||||
|
Loading…
Reference in New Issue
Block a user