Skip to content

Conversation

@knoepfel
Copy link
Member

Either default-construct product_query or require the constructor with both the product_specification and the layer argument.

Also switch to using default comparisons

@knoepfel knoepfel changed the title Safer product_query construction. Safer product_query construction Dec 17, 2025
@knoepfel knoepfel requested review from beojan and wlav December 17, 2025 22:33
@knoepfel
Copy link
Member Author

@wlav, this PR should help avoid the problem you ran into. Alas, the default product_query constructor is required in order for the Boost JSON's product retrieval to work.

This is not an urgent PR.

@knoepfel knoepfel force-pushed the safer-product-query-construction branch from f8999e2 to 3bb9231 Compare December 17, 2025 22:37
@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
phlex/core/product_query.cpp 60.00% 1 Missing and 1 partial ⚠️
phlex/core/message.cpp 0.00% 1 Missing ⚠️

❌ Your project check has failed because the head coverage (76.71%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

@@            Coverage Diff             @@
##             main     #205      +/-   ##
==========================================
+ Coverage   76.61%   76.71%   +0.09%     
==========================================
  Files         124      124              
  Lines        2733     2727       -6     
  Branches      475      475              
==========================================
- Hits         2094     2092       -2     
+ Misses        446      442       -4     
  Partials      193      193              
Flag Coverage Δ
unittests 76.71% <85.71%> (+0.09%) ⬆️

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

Files with missing lines Coverage Δ
phlex/configuration.cpp 100.00% <100.00%> (ø)
phlex/core/declared_provider.hpp 100.00% <100.00%> (ø)
phlex/core/detail/filter_impl.cpp 95.23% <100.00%> (ø)
phlex/core/edge_creation_policy.cpp 79.06% <100.00%> (ø)
phlex/core/input_arguments.hpp 100.00% <100.00%> (ø)
phlex/core/multiplexer.cpp 79.31% <100.00%> (ø)
phlex/core/product_query.hpp 90.00% <100.00%> (+6.66%) ⬆️
phlex/core/registration_api.hpp 100.00% <100.00%> (ø)
phlex/model/algorithm_name.cpp 51.61% <ø> (-2.68%) ⬇️
phlex/model/algorithm_name.hpp 33.33% <100.00%> (+33.33%) ⬆️
... and 4 more

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14c7635...16a9c43. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@knoepfel knoepfel force-pushed the safer-product-query-construction branch from 3bb9231 to 274bd88 Compare December 18, 2025 14:35
@knoepfel knoepfel force-pushed the safer-product-query-construction branch from 274bd88 to 16a9c43 Compare December 22, 2025 20:54
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.

1 participant