From eda9bfda75dc48d55f360bc2b89a433f4c8cf5e4 Mon Sep 17 00:00:00 2001 From: Dawid Moszynski Date: Mon, 9 Dec 2024 13:29:44 +0100 Subject: [PATCH] fix(traffic_simulator): add EOF to lanelet_wrapper tests --- .../traffic_simulator/test/src/lanelet_wrapper/CMakeLists.txt | 1 - .../test/src/lanelet_wrapper/test_distance.cpp | 2 +- .../test/src/lanelet_wrapper/test_lane_change.cpp | 2 +- .../test/src/lanelet_wrapper/test_lanelet_map.cpp | 2 +- .../test/src/lanelet_wrapper/test_lanelet_wrapper.hpp | 2 +- .../traffic_simulator/test/src/lanelet_wrapper/test_pose.cpp | 2 +- .../traffic_simulator/test/src/lanelet_wrapper/test_route.cpp | 2 +- .../test/src/lanelet_wrapper/test_traffic_lights.cpp | 2 +- 8 files changed, 7 insertions(+), 8 deletions(-) diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/CMakeLists.txt b/simulation/traffic_simulator/test/src/lanelet_wrapper/CMakeLists.txt index 850104d1f16..9055230180d 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/CMakeLists.txt +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/CMakeLists.txt @@ -15,4 +15,3 @@ target_link_libraries(test_lanelet_wrapper_lane_change traffic_simulator) ament_add_gtest(test_lanelet_wrapper_traffic_lights test_traffic_lights.cpp) target_link_libraries(test_lanelet_wrapper_traffic_lights traffic_simulator) - diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_distance.cpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_distance.cpp index 9d3acaab6b4..d3a13fe8bd1 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_distance.cpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_distance.cpp @@ -642,4 +642,4 @@ TEST_F(LaneletWrapperTest_CrossroadsWithStoplinesMap, getDistanceToStopLine_empt makePoint(3807.63, 73715.99), makePoint(3785.76, 73707.70), makePoint(3773.19, 73723.27)}) .has_value()); } -} // namespace traffic_simulator::lanelet_wrapper::tests \ No newline at end of file +} // namespace traffic_simulator::lanelet_wrapper::tests diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lane_change.cpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lane_change.cpp index 77758742d16..8d720e146f8 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lane_change.cpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lane_change.cpp @@ -216,4 +216,4 @@ TEST_F(LaneletWrapperTest_FourTrackHighwayMap, canChangeLane_invalidLaneletId) { EXPECT_THROW(lane_change::canChangeLane(1000003, 1000033), std::runtime_error); } -} // namespace traffic_simulator::lanelet_wrapper::tests \ No newline at end of file +} // namespace traffic_simulator::lanelet_wrapper::tests diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_map.cpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_map.cpp index 8624b43ebc9..997ea6a74f3 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_map.cpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_map.cpp @@ -567,4 +567,4 @@ TEST_F(LaneletWrapperTest_CrossroadsWithStoplinesMap, getStopLinePolygon_invalid { EXPECT_THROW(lanelet_map::stopLinePolygon(1000039), std::runtime_error); } -} // namespace traffic_simulator::lanelet_wrapper::tests \ No newline at end of file +} // namespace traffic_simulator::lanelet_wrapper::tests diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_wrapper.hpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_wrapper.hpp index fbd19cb69ca..d47bde2ce60 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_wrapper.hpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_lanelet_wrapper.hpp @@ -76,4 +76,4 @@ class LaneletWrapperTest_IntersectionMap : public testing::Test LaneletWrapperTest_IntersectionMap() { activateLaneletWrapper("intersection"); } }; -#endif // TRAFFIC_SIMULATOR__TEST__TEST_LANELET_WRAPPER_HPP_ \ No newline at end of file +#endif // TRAFFIC_SIMULATOR__TEST__TEST_LANELET_WRAPPER_HPP_ diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_pose.cpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_pose.cpp index 96ad2a41c24..06bb7d0bf09 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_pose.cpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_pose.cpp @@ -445,4 +445,4 @@ TEST_F(LaneletWrapperTest_StandardMap, toLaneletPose_boundingBoxMatchPrevious) .rpy(geometry_msgs::msg::Vector3()), 0.1); } -} // namespace traffic_simulator::lanelet_wrapper::tests \ No newline at end of file +} // namespace traffic_simulator::lanelet_wrapper::tests diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_route.cpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_route.cpp index 3b024e460ed..b89dc657a8c 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_route.cpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_route.cpp @@ -265,4 +265,4 @@ TEST_F(LaneletWrapperTest_WithRoadShoulderMap, routingWithRoadShoulder) EXPECT_EQ(route_with_road_shoulder[2], 34768); // road shoulder EXPECT_EQ(route_with_road_shoulder[3], 34615); } -} // namespace traffic_simulator::lanelet_wrapper::tests \ No newline at end of file +} // namespace traffic_simulator::lanelet_wrapper::tests diff --git a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_traffic_lights.cpp b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_traffic_lights.cpp index d61905b5149..8e38fe1be66 100644 --- a/simulation/traffic_simulator/test/src/lanelet_wrapper/test_traffic_lights.cpp +++ b/simulation/traffic_simulator/test/src/lanelet_wrapper/test_traffic_lights.cpp @@ -216,4 +216,4 @@ TEST_F( { EXPECT_THROW(traffic_lights::trafficLightStopLineIds(1000039), std::runtime_error); } -} // namespace traffic_simulator::lanelet_wrapper::tests \ No newline at end of file +} // namespace traffic_simulator::lanelet_wrapper::tests