summaryrefslogtreecommitdiff
path: root/libartbase/base/variant_map_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/variant_map_test.cc')
-rw-r--r--libartbase/base/variant_map_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libartbase/base/variant_map_test.cc b/libartbase/base/variant_map_test.cc
index f2da3389b1..f7beeceb71 100644
--- a/libartbase/base/variant_map_test.cc
+++ b/libartbase/base/variant_map_test.cc
@@ -126,6 +126,7 @@ TEST(VariantMaps, RuleOfFive) {
// Test move constructor
FruitMap fmMoved(std::move(fmFilledCopy));
+ // NOLINTNEXTLINE - checking underlying storage has been freed
EXPECT_EQ(size_t(0), fmFilledCopy.Size());
EXPECT_EQ(size_t(2), fmMoved.Size());
EXPECT_EQ(*fmFilled.Get(FruitMap::Apple), *fmMoved.Get(FruitMap::Apple));
@@ -136,6 +137,7 @@ TEST(VariantMaps, RuleOfFive) {
fmMoved2.Set(FruitMap::Apple, 12345); // This value will be clobbered after the move
fmMoved2 = std::move(fmFilledCopy2);
+ // NOLINTNEXTLINE - checking underlying storage has been freed
EXPECT_EQ(size_t(0), fmFilledCopy2.Size());
EXPECT_EQ(size_t(2), fmMoved2.Size());
EXPECT_EQ(*fmFilled.Get(FruitMap::Apple), *fmMoved2.Get(FruitMap::Apple));