Skip to content

Conversation

@Grufoony
Copy link
Collaborator

@Grufoony Grufoony commented Dec 3, 2025

No description provided.

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 69.49153% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.11%. Comparing base (292021f) to head (14342c7).

Files with missing lines Patch % Lines
src/dsf/mobility/RoadNetwork.cpp 47.36% 10 Missing ⚠️
src/dsf/mobility/Street.cpp 53.33% 7 Missing ⚠️
src/dsf/mobility/RoadDynamics.hpp 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #375      +/-   ##
==========================================
- Coverage   83.27%   83.11%   -0.17%     
==========================================
  Files          53       53              
  Lines        5275     5331      +56     
  Branches      606      614       +8     
==========================================
+ Hits         4393     4431      +38     
- Misses        871      889      +18     
  Partials       11       11              
Flag Coverage Δ
unittests 83.11% <69.49%> (-0.17%) ⬇️

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.

// Get current street information
std::optional<Id> previousNodeId = std::nullopt;
std::set<Id> forbiddenTurns;
std::unordered_map<Id, double> baseTransitionProbabilities;

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
if (!edge_properties.at_key("transition_probabilities").error() &&
edge_properties["transition_probabilities"].has_value()) {
auto const& tp = edge_properties["transition_probabilities"];
std::unordered_map<Id, double> transitionProbabilities;

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
edge_properties["transition_probabilities"].has_value()) {
auto const& tp = edge_properties["transition_probabilities"];
std::unordered_map<Id, double> transitionProbabilities;
for (auto const& [key, value] : tp.get_object()) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
transitionProbabilities) {
std::for_each(DSF_EXECUTION m_edges.cbegin(),
m_edges.cend(),
[&transitionProbabilities](auto const& pair) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 13.1 rule Note

MISRA 13.1 rule
// Ensure normalization
if (transitionProbabilities.empty()) {
m_transitionProbabilities.clear();
return;

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.5 rule Note

MISRA 15.5 rule
return;
}
double sumProbabilities{0.};
for (auto const& [_, probability] : transitionProbabilities) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
}
if (std::abs(sumProbabilities - 1.) > 1e-6) {
auto tp = transitionProbabilities;
for (auto& [_, probability] : tp) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
probability /= sumProbabilities;
}
m_transitionProbabilities = tp;
return;

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.5 rule Note

MISRA 15.5 rule
@Grufoony Grufoony closed this Dec 3, 2025
@Grufoony Grufoony deleted the useTP branch December 4, 2025 10:29
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