Repository navigation
do not discard turn restrictions where the turn description and angle do not match, just add an issue - #6553
Merged
tkalvas merged 3 commits intoMar 21, 2025
Conversation
… do not match, just add an issue
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6553 +/- ##
=============================================
- Coverage 70.24% 70.24% -0.01%
- Complexity 18369 18382 +13
=============================================
Files 2087 2088 +1
Lines 77381 77415 +34
Branches 7839 7842 +3
=============================================
+ Hits 54357 54379 +22
- Misses 20249 20265 +16
+ Partials 2775 2771 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
You're right in that the testing situation with the OSM code is pretty bad. However, @vesameskanen and I have recently started working a testing framework that allows you to write module tests for exactly these kinds of features that regrettably span several classes. I've taken the liberty to write a test for the feature you're changing: leonardehrenfried@c59fb79 Could you cherry-pick, adapt it and perhaps flesh it out a little so that a few more cases are tested? |
optionsome
approved these changes
Mar 21, 2025
leonardehrenfried
approved these changes
Mar 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Throwing out restrictions based on a heuristic was wrong. We still continue adding issues to the issue store for them.
The code in question is really old, and no one really remembered why it is written this way. Maybe OSM data used to be worse, these days this check seems counterproductive.
Issue
Fixes #6536
Unit tests
None existed in the first place.
Documentation
I left a comment explaining the logic.
Changelog
No.
Bumping the serialization version id
No.