Increasing test coverage of rclcpp_components (#1044)

* Increasing test coverage of rclcpp_components

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* PR fixup

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Fixup

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Removing throws test for now

Signed-off-by: Stephen Brawner <brawner@gmail.com>
This commit is contained in:
brawner 2020-05-12 10:26:49 -07:00 committed by GitHub
parent 66114c3a4a
commit cac761373f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 84 additions and 5 deletions

View file

@ -88,4 +88,9 @@ TEST_F(TestComponentManager, create_component_factory_invalid)
auto resources = manager->get_component_resources("rclcpp_components");
auto factory = manager->create_component_factory({"foo_class", resources[0].second});
EXPECT_EQ(nullptr, factory);
// Test improperly formed resources file
EXPECT_THROW(
auto resources = manager->get_component_resources("invalid_rclcpp_components"),
rclcpp_components::ComponentManagerException);
}