Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Add unit test for composeability of nodes #76

Merged
merged 3 commits into from Jan 21, 2020
Merged

Conversation

mm318
Copy link
Member

@mm318 mm318 commented Jan 20, 2020

This adds tests for whether or not libsystem_metrics_collector.so contains working composeable nodes. It is based on one of the composition demos.

system_metrics_collector/CMakeLists.txt Outdated Show resolved Hide resolved
for (const auto & class_name : class_names) {
ASSERT_TRUE(IsExpectedClassName(class_name));
auto node_factory = loader->createInstance<rclcpp_components::NodeFactory>(class_name);
auto wrapper = node_factory->create_node_instance(options);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const?

Copy link
Member Author

@mm318 mm318 Jan 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be const because get_node_base_interface() is not a const member function.

@mm318 mm318 requested a review from dabonnie January 21, 2020 19:27
@dabonnie dabonnie merged commit 2264fc8 into master Jan 21, 2020
@dabonnie dabonnie deleted the miaofei/test-composeable branch January 21, 2020 20:03
@dabonnie
Copy link
Contributor

Merged as build + test passed, but codecov is still broken.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants