File tree 1 file changed +4
-4
lines changed
src/app/data-model-provider/tests
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ TEST_F(TestMetadataList, BufferMoveOperationsWork)
226
226
// / move constructor called for the second time here
227
227
GenericAppendOnlyBuffer newBuffer{ std::move (originalBuffer) };
228
228
229
- ASSERT_EQ (originalBuffer.Size (), size_t { 0 });
230
- ASSERT_TRUE (originalBuffer.IsEmpty ());
229
+ ASSERT_EQ (originalBuffer.Size (), size_t { 0 }); // NOLINT(bugprone-use-after-move)
230
+ ASSERT_TRUE (originalBuffer.IsEmpty ()); // NOLINT(bugprone-use-after-move)
231
231
232
232
ASSERT_EQ (newBuffer.Size (), size_t { 3 });
233
233
ASSERT_FALSE (newBuffer.IsEmpty ());
@@ -262,8 +262,8 @@ TEST_F(TestMetadataList, BufferMoveOperationsWork)
262
262
originalBuffer = std::move (anotherBuffer);
263
263
264
264
ASSERT_EQ (originalBuffer.Size (), size_t { 2 });
265
- ASSERT_EQ (anotherBuffer.Size (), size_t { 0 });
266
- ASSERT_TRUE (anotherBuffer.IsEmpty ());
265
+ ASSERT_EQ (anotherBuffer.Size (), size_t { 0 }); // NOLINT(bugprone-use-after-move)
266
+ ASSERT_TRUE (anotherBuffer.IsEmpty ()); // NOLINT(bugprone-use-after-move)
267
267
}
268
268
}
269
269
} // namespace
You can’t perform that action at this time.
0 commit comments