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

Error when delimiter "::" found in element name in SDFormat 1.8 #515

Merged
merged 4 commits into from
Mar 18, 2021

Conversation

jennuine
Copy link
Collaborator

@jennuine jennuine commented Mar 16, 2021

Closes #420

Summary

Error when the :: delimiter is found in name attributes for files that are SDFormat >= 1.8

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Code check passed (In source directory, run sh tools/code_check.sh)
  • 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

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@jennuine jennuine requested a review from azeey March 16, 2021 20:26
@github-actions github-actions bot added the 🏢 edifice Ignition Edifice label Mar 16, 2021
src/parser.cc Outdated Show resolved Hide resolved
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@codecov-io
Copy link

codecov-io commented Mar 17, 2021

Codecov Report

Merging #515 (56e47a7) into master (3fb5312) will increase coverage by 0.00%.
The diff coverage is 88.46%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #515   +/-   ##
=======================================
  Coverage   87.81%   87.81%           
=======================================
  Files          66       66           
  Lines        9321     9347   +26     
=======================================
+ Hits         8185     8208   +23     
- Misses       1136     1139    +3     
Impacted Files Coverage Δ
src/parser.cc 81.67% <88.46%> (+0.19%) ⬆️

Continue to review full report at Codecov.

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

Copy link
Member

@scpeters scpeters left a comment

Choose a reason for hiding this comment

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

looks good; I just left some minor comments

nice work!

include/sdf/parser.hh Outdated Show resolved Hide resolved
<< " </model>"
<< "</sdf>";

EXPECT_FALSE(sdf::readString(stream.str(), sdf));
Copy link
Member

Choose a reason for hiding this comment

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

nit: you could pass an sdf::Errors object to sdf::readString and check its contents

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

looks great!

Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
@jennuine
Copy link
Collaborator Author

Waiting for #504 to be merged before merging this one

@chapulina chapulina added the beta Targeting beta release of upcoming collection label Mar 18, 2021
@jennuine jennuine merged commit 936a2e3 into master Mar 18, 2021
@jennuine jennuine deleted the jennuine/delimiter_error branch March 18, 2021 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection 🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using the delimiter "::" in a name should be an error in SDFormat 1.8
4 participants