Skip to content

Fix at#437

Merged
Grufoony merged 3 commits intomainfrom
fixAT
Apr 14, 2026
Merged

Fix at#437
Grufoony merged 3 commits intomainfrom
fixAT

Conversation

@Grufoony
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 14, 2026 09:38
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 68.00000% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.26%. Comparing base (8e0f47d) to head (ed6e6d0).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/dsf/mobility/FirstOrderDynamics.cpp 68.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #437      +/-   ##
==========================================
- Coverage   87.34%   87.26%   -0.08%     
==========================================
  Files          52       52              
  Lines        6510     6527      +17     
  Branches      730      732       +2     
==========================================
+ Hits         5686     5696      +10     
- Misses        802      809       +7     
  Partials       22       22              
Flag Coverage Δ
unittests 87.26% <68.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens FirstOrderDynamics against std::out_of_range exceptions by replacing .at() lookups with .find() checks and handling missing entries via logging + early return/std::nullopt.

Changes:

  • Guard itinerary lookup in m_addAgentsODs() and skip insertion when the destination itinerary is missing.
  • Adjust OD selection logic to ensure an OD is always selected (fallback to last element) instead of relying on strict floating-point comparisons.
  • Guard itinerary path lookup in m_nextStreetId() and return std::nullopt when no path entry exists for the current node.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Grufoony Grufoony merged commit e34a5ca into main Apr 14, 2026
46 of 48 checks passed
@Grufoony Grufoony deleted the fixAT branch April 14, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants