Skip to content

Conversation

@leonardehrenfried
Copy link
Member

Summary

This converts the remaining GTFS-RT realtime tests to module tests.

It also does a tiny bit of refactoring in the update handling code.

Issue

#4002

Unit tests

Yes.

@leonardehrenfried leonardehrenfried added !Technical Debt Improve code quality, no functional changes. +Real-Time The issue/PR is related to RealTime updates +Skip Changelog This is not a relevant change for a product owner since last release. labels Jun 17, 2024
@leonardehrenfried leonardehrenfried requested a review from a team as a code owner June 17, 2024 13:12
@codecov
Copy link

codecov bot commented Jun 17, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 69.63%. Comparing base (8de9f88) to head (4d1ef04).
Report is 2 commits behind head on dev-2.x.

Files Patch % Lines
...pplanner/updater/trip/TimetableSnapshotSource.java 60.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #5916   +/-   ##
==========================================
  Coverage      69.63%   69.63%           
  Complexity     17129    17129           
==========================================
  Files           1937     1937           
  Lines          73742    73738    -4     
  Branches        7546     7545    -1     
==========================================
- Hits           51351    51349    -2     
  Misses         19754    19754           
+ Partials        2637     2635    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Just some minor comments

@leonardehrenfried leonardehrenfried force-pushed the gtfsrt-module-tests branch 3 times, most recently from ccca33b to d4ff444 Compare June 18, 2024 12:12
@leonardehrenfried
Copy link
Member Author

@habrahamsson-skanetrafiken I extract a few re-usable methods and made the tests a lot more compact and readable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much more readable! Approving with a minor comment that you can fix if you want to.

@leonardehrenfried leonardehrenfried requested a review from t2gran June 20, 2024 13:54
@leonardehrenfried leonardehrenfried requested a review from t2gran July 1, 2024 16:10
@leonardehrenfried leonardehrenfried requested a review from t2gran July 3, 2024 15:33
t2gran
t2gran previously approved these changes Jul 5, 2024
@vpaturet
Copy link
Contributor

Since this has already been approved earlier and there were only minor changes since then, I guess you can merge this PR.

@leonardehrenfried leonardehrenfried merged commit 5991d60 into opentripplanner:dev-2.x Jul 17, 2024
@leonardehrenfried leonardehrenfried deleted the gtfsrt-module-tests branch July 17, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

+Real-Time The issue/PR is related to RealTime updates +Skip Changelog This is not a relevant change for a product owner since last release. !Technical Debt Improve code quality, no functional changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants