diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-03 17:26:40 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-03 17:26:45 +0300 |
commit | 10d61f34bb8df4008cf96b748f8cd38b4665443c (patch) | |
tree | 7b11441079b360c923630659e7949461f38d6c79 /source/blender/blenlib | |
parent | 519b2f937f3281031d8970cbfc0d26c3acf308a5 (diff) |
Fix clang tidy errors in tests
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/tests/BLI_map_test.cc | 4 | ||||
-rw-r--r-- | source/blender/blenlib/tests/BLI_set_test.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/tests/BLI_map_test.cc b/source/blender/blenlib/tests/BLI_map_test.cc index 7b4a484e736..91c6335b949 100644 --- a/source/blender/blenlib/tests/BLI_map_test.cc +++ b/source/blender/blenlib/tests/BLI_map_test.cc @@ -498,7 +498,7 @@ TEST(map, MoveConstructorExceptions) map.add(2, 2); map.lookup(1).throw_during_move = true; EXPECT_ANY_THROW({ MapType map_moved(std::move(map)); }); - map.add(5, 5); + map.add(5, 5); /* NOLINT: bugprone-use-after-move */ } TEST(map, AddNewExceptions) @@ -532,7 +532,7 @@ TEST(map, PopExceptions) Map<ExceptionThrower, ExceptionThrower> map; map.add(3, 3); map.lookup(3).throw_during_move = true; - EXPECT_ANY_THROW({ map.pop(3); }); + EXPECT_ANY_THROW({ map.pop(3); }); /* NOLINT: bugprone-throw-keyword-missing */ EXPECT_EQ(map.size(), 1); map.add(1, 1); EXPECT_EQ(map.size(), 2); diff --git a/source/blender/blenlib/tests/BLI_set_test.cc b/source/blender/blenlib/tests/BLI_set_test.cc index 3ea9a59b3db..bf49bfb611b 100644 --- a/source/blender/blenlib/tests/BLI_set_test.cc +++ b/source/blender/blenlib/tests/BLI_set_test.cc @@ -485,7 +485,7 @@ TEST(set, MoveConstructorExceptions) SetType set = {1, 2, 3}; set.lookup_key(2).throw_during_move = true; EXPECT_ANY_THROW({ SetType set_moved(std::move(set)); }); - EXPECT_EQ(set.size(), 0); + EXPECT_EQ(set.size(), 0); /* NOLINT: bugprone-use-after-move */ set.add_multiple({3, 6, 7}); EXPECT_EQ(set.size(), 3); } |