test: let the linter know that things are done on purpose sometimes

This commit is contained in:
Michele Caini
2024-10-10 08:48:19 +02:00
parent e904300c1f
commit 95f84d1488

View File

@@ -130,6 +130,7 @@ TEST(CompressedPair, Get) {
ASSERT_EQ(pair.first(), 3);
ASSERT_EQ(pair.second(), 4);
// NOLINTNEXTLINE((readability-qualified-auto)
auto &[cfirst, csecond] = std::as_const(pair);
ASSERT_EQ(cfirst, 3);