Skip to content

Commit

Permalink
Add mocking unit tests for rcl_yaml_param_parser (coverage part 3/3) (r…
Browse files Browse the repository at this point in the history
…os2#772)

* Add mocking unit tests for rcl_yaml

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

* deallocate test_path

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

* Fix memory leaks

Signed-off-by: Stephen Brawner <brawner@gmail.com>
  • Loading branch information
brawner authored and ahcorde committed Oct 9, 2020
1 parent 08bbdde commit b62b83b
Show file tree
Hide file tree
Showing 5 changed files with 494 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcl_yaml_param_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if(BUILD_TESTING)
"rcutils"
"osrf_testing_tools_cpp"
)
target_link_libraries(test_parse ${PROJECT_NAME})
target_link_libraries(test_parse ${PROJECT_NAME} mimick)
endif()

ament_add_gtest(test_parser
Expand All @@ -119,7 +119,7 @@ if(BUILD_TESTING)
"rcutils"
"osrf_testing_tools_cpp"
)
target_link_libraries(test_parser ${PROJECT_NAME})
target_link_libraries(test_parser ${PROJECT_NAME} mimick)
target_compile_definitions(test_parser PUBLIC RCUTILS_ENABLE_FAULT_INJECTION)
endif()

Expand Down
1 change: 1 addition & 0 deletions rcl_yaml_param_parser/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>mimick_vendor</test_depend>
<test_depend>osrf_testing_tools_cpp</test_depend>
<test_depend>performance_test_fixture</test_depend>
<test_depend>rcpputils</test_depend>
Expand Down
Loading

0 comments on commit b62b83b

Please sign in to comment.