diff --git a/src/test/blockstore/utils/KeyTest.cpp b/src/test/blockstore/utils/KeyTest.cpp index fb84a7a9..5366939b 100644 --- a/src/test/blockstore/utils/KeyTest.cpp +++ b/src/test/blockstore/utils/KeyTest.cpp @@ -76,3 +76,9 @@ TEST_F(KeyTest, ToAndFromString2) { auto key2 = Key::FromString(key.AsString()); EXPECT_EQ(key, key2); } + +// This tests that a Key object is very lightweight +// (we will often pass keys around) +TEST_F(KeyTest, KeyIsLightweightObject) { + EXPECT_EQ(Key::KEYLENGTH_BINARY, sizeof(Key)); +}