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

JointAxis: improve code coverage in Load() #1267

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Apr 3, 2023

🦟 Bug fix

Improve code coverage in JointAxis.cc

Summary

The //axis*/xyz and //axis*/limit elements are marked as required in the SDFormat spec, so they will always be present. This pull request improves code coverage by removing unreachable error checking that checks if those elements are missing.

I noticed part of this change in #1166 and pulled it out to a separate PR.

Checklist

  • Signed all commits for DCO
  • Added tests
  • 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.

The //axis*/xyz and //axis*/limit elements will always
be present, so remove unreachable error checking.

Signed-off-by: Steve Peters <[email protected]>
@scpeters scpeters requested a review from azeey as a code owner April 3, 2023 18:50
@github-actions github-actions bot added 🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic labels Apr 3, 2023
@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Merging #1267 (280e559) into sdf13 (d044d5d) will increase coverage by 0.00%.
The diff coverage is n/a.

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

@@           Coverage Diff           @@
##            sdf13    #1267   +/-   ##
=======================================
  Coverage   87.55%   87.56%           
=======================================
  Files         126      126           
  Lines       16476    16472    -4     
=======================================
- Hits        14426    14424    -2     
+ Misses       2050     2048    -2     
Impacted Files Coverage Δ
src/JointAxis.cc 98.80% <ø> (+1.13%) ⬆️

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

@scpeters scpeters merged commit bfeaf07 into sdf13 Apr 4, 2023
@scpeters scpeters deleted the scpeters/axis_load_coverage branch April 4, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants