Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParamPassing: sdfwarns to sdf::Errors when warnings policy set to sdf::EnforcementPolicy::ERR #1135

Merged
merged 8 commits into from
Nov 25, 2022

Conversation

marcoag
Copy link
Member

@marcoag marcoag commented Sep 8, 2022

Signed-off-by: Marco A. Gutierrez [email protected]

🎉 New feature

Work towards #820.

Summary

Makes warnings to be reported through sdf::Errors when the warnings policy is set to sdf::EnforcementPolicy::ERR in the ParamPassing class .

Since the tests added here directly test the specific messages on the specific functions of the ParamPassing class, they have been added to ParamPassing_TEST.cc instead of the integration test error_output.cc, but let me know if you think it's should be different.

Test it

When using the ParamPassing class and setting the warnings policy to sdf::EnforcementPolicy::ERR warnings should be reported through in the sdf::Errors structure, they should be printed if the policy is different.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Merging #1135 (adbd692) into sdf13 (8fcbe1e) will decrease coverage by 0.00%.
The diff coverage is 95.45%.

❗ Current head adbd692 differs from pull request most recent head c0b907d. Consider uploading reports for the commit c0b907d to get more accurate results

@@            Coverage Diff             @@
##            sdf13    #1135      +/-   ##
==========================================
- Coverage   87.53%   87.53%   -0.01%     
==========================================
  Files         124      124              
  Lines       16143    16144       +1     
==========================================
  Hits        14131    14131              
- Misses       2012     2013       +1     
Impacted Files Coverage Δ
src/ParamPassing.cc 97.08% <95.45%> (-0.32%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Marco A. Gutierrez added 2 commits October 3, 2022 09:29
Signed-off-by: Marco A. Gutierrez <[email protected]>
@marcoag marcoag force-pushed the marcoag/sdf_error_ParamPassing branch from a5ea05e to ba83968 Compare October 3, 2022 09:32
@marcoag marcoag changed the base branch from main to sdf13 October 3, 2022 09:32
Copy link
Collaborator

@azeey azeey left a comment

Choose a reason for hiding this comment

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

Just minor commenst. LGTM, otherwise!

src/ParamPassing.hh Outdated Show resolved Hide resolved
src/ParamPassing.hh Outdated Show resolved Hide resolved
src/ParamPassing.hh Outdated Show resolved Hide resolved
Marco A. Gutierrez and others added 4 commits October 13, 2022 06:43
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Marco A. Gutierrez <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Marco A. Gutierrez <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Marco A. Gutierrez <[email protected]>
@marcoag marcoag force-pushed the marcoag/sdf_error_ParamPassing branch from 826ff15 to 031064f Compare October 13, 2022 08:25
@marcoag marcoag merged commit 702dc37 into sdf13 Nov 25, 2022
@marcoag marcoag deleted the marcoag/sdf_error_ParamPassing branch November 25, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants