Skip to content

Commit

Permalink
Address clang-format warnings in test_message_definition_cache.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Orlov <[email protected]>
  • Loading branch information
MichaelOrlov committed Dec 15, 2024
1 parent ee2da8d commit ad13f87
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,10 @@ TEST(test_message_definition_cache, get_service_message_definitions)
TEST(test_local_message_definition_source, throw_definition_not_found_for_unknown_msg)
{
MessageDefinitionCache source;
ASSERT_THROW(
{ source.get_full_text("rosbag2_test_msgdefs/msg/UnknownMessage"); },
rosbag2_storage_mcap::internal::DefinitionNotFoundError);
ASSERT_THROW({ source.get_full_text("rosbag2_test_msgdefs/msg/UnknownMessage"); },
rosbag2_storage_mcap::internal::DefinitionNotFoundError);

// Throw DefinitionNotFoundError for not found message definition package name
ASSERT_THROW(
{ source.get_full_text("not_found_msgdefs_pkg/msg/UnknownMessage"); },
rosbag2_storage_mcap::internal::DefinitionNotFoundError);
ASSERT_THROW({ source.get_full_text("not_found_msgdefs_pkg/msg/UnknownMessage"); },
rosbag2_storage_mcap::internal::DefinitionNotFoundError);
}

0 comments on commit ad13f87

Please sign in to comment.