test: add coverage for includeStatus parameter - #1293
Conversation
Add table-driven test TestTripsForRouteHandler_StatusInclusion to verify that the includeStatus query parameter correctly omits or includes the status object in the response
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded table-driven tests for the trips-for-route handler. The tests verify default, explicit, and disabled ChangesTrips-for-route status behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Description
This PR addresses the missing test coverage for the
includeStatusquery parameter in thetrips-for-routehandler.Changes Made
TestTripsForRouteHandler_StatusInclusionininternal/restapi/trips_for_route_handler_test.go.includeStatus=falsecorrectly omits thestatusobject from the response entries.includeStatus=true(or omitted) correctly includes the populatedstatusobject.Closes: #1292
Summary by CodeRabbit
includeStatussetting.