Closed vpaturet closed 4 months ago
Attention: Patch coverage is 77.77778%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 68.46%. Comparing base (
b1314cd
) to head (61f9fd9
). Report is 25 commits behind head on dev-2.x.:exclamation: Current head 61f9fd9 differs from pull request most recent head 3a12663
Please upload reports for the commit 3a12663 to get more accurate results.
Files | Patch % | Lines |
---|---|---|
...opentripplanner/ext/siri/SiriFuzzyTripMatcher.java | 77.77% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@lassetyr In this specific case, does the error need to be reported in the OTP logs? Is this useful for debugging? There is a number of other edge cases where missing/incomplete data is silently ignored.
I do not see the need for logging this error, so it can fail silently.
It's great that we now have a way to write tests for all these kinds strange edge cases. Well done, @habrahamsson-skanetrafiken
Summary
As detailed in #5864 , some SIRI updates fail with a NullPointerException. The root cause is a missing aimed departure date on the first call in the estimated vehicle journey (mandatory field in the Nordic SIRI profile). This PR:
Note: the null-check on aimed departure date is moved early enough in the process to provide context for the error message, but without changing the outcome.
Note: the SIRI test framework is extended to support:
Issue
Closes #5864
Unit tests
Added unit tests
Documentation
No