Skip to content

Commit

Permalink
Add dependency injection example using path generator (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
griswaldbrooks authored Sep 15, 2023
1 parent 03147ec commit 912f1b4
Show file tree
Hide file tree
Showing 2 changed files with 532 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functional_programming_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ find_package(std_msgs REQUIRED)

if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
find_package(ament_cmake_gmock REQUIRED)
ament_add_gtest(with_functional_programming test/with_functional_programming.cpp TIMEOUT 5)
ament_target_dependencies(with_functional_programming rclcpp std_msgs)

ament_add_gtest(without_functional_programming test/without_functional_programming.cpp TIMEOUT 5)
ament_target_dependencies(without_functional_programming rclcpp std_msgs example_srvs)

ament_add_gmock(with_dependency_injection test/with_dependency_injection.cpp TIMEOUT 5)
ament_target_dependencies(with_dependency_injection rclcpp std_msgs example_srvs)
endif()

ament_package()
Loading

0 comments on commit 912f1b4

Please sign in to comment.