-
Notifications
You must be signed in to change notification settings - Fork 100
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
Element: update calls to use sdf::Errors output #1141
Conversation
Codecov Report
@@ Coverage Diff @@
## sdf13 #1141 +/- ##
==========================================
- Coverage 87.51% 87.42% -0.10%
==========================================
Files 126 126
Lines 16248 16314 +66
==========================================
+ Hits 14220 14262 +42
- Misses 2028 2052 +24
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
526ce7d
to
5b08d02
Compare
Signed-off-by: Marco A. Gutierrez <[email protected]>
5b08d02
to
4f30f5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I would like to see tests that cover some of the most frequently used APIs sugh as Element::Get
.
Signed-off-by: Marco A. Gutierrez <[email protected]>
60d4ae2
to
46f6924
Compare
Signed-off-by: Marco A. Gutierrez <[email protected]>
Added tests for The rest of functions changed here seem to only fail when the |
Signed-off-by: Marco A. Gutierrez <[email protected]>
…/osrf/sdformat into marcoag/sdf_error_element_update
Yes, some of the functions are very unlikely to emit an error, but we might be able to induce some errors by providing ill formed description files. I'll try to look into this. |
@marcoag I've pushed some changes to I was unable to find a way to cause Lines 1243 to 1246 in 6af4be6
Would you be able to look through |
Per video call, it would be best to revert all the changes we made code that calls Line 52 in 6af4be6
|
Can you resolve the conflicts? |
a4fd3be
to
4daa82c
Compare
Signed-off-by: Marco A. Gutierrez <[email protected]>
Signed-off-by: Marco A. Gutierrez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a few minor comments
Signed-off-by: Marco A. Gutierrez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for iterating! I'll go ahead and merge!
Signed-off-by: Marco A. Gutierrez [email protected]
🎉 New feature
Work towards #820.
Summary
This is an update for the class
Element
making the calls usesdf::Errors
whenever possible to avoid unwanted console outputs.Test it
Using any method of the
Element
class with theerrors
parameter should not print any error.Checklist
codecheck
passed (See contributing)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.