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

Fix offset when appending items #1454

Merged
merged 4 commits into from
Aug 14, 2024
Merged

Fix offset when appending items #1454

merged 4 commits into from
Aug 14, 2024

Conversation

jmthomas
Copy link
Member

@jmthomas jmthomas commented Aug 6, 2024

No description provided.

@jmthomas jmthomas requested a review from ryanmelt August 6, 2024 05:14
@jmthomas jmthomas marked this pull request as ready for review August 6, 2024 05:14
expect(packet.read("ITEM2")).to eql "\x01\x02\x03\x04\x05"
expect(packet.read("ITEM3")).to eql "\x0a\x0b\x0b\x0a"
tf.unlink
end
Copy link
Member Author

Choose a reason for hiding this comment

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

This spec fails without the fix to structure.rb

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 81.25000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 75.77%. Comparing base (632f65c) to head (46cb701).
Report is 20 commits behind head on main.

Files Patch % Lines
...3/lib/openc3/conversions/object_read_conversion.rb 81.25% 3 Missing ⚠️
openc3/lib/openc3/packets/packet.rb 0.00% 1 Missing ⚠️
openc3/lib/openc3/packets/packet_item.rb 75.00% 1 Missing ⚠️
openc3/lib/openc3/packets/structure_item.rb 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1454      +/-   ##
==========================================
- Coverage   75.80%   75.77%   -0.03%     
==========================================
  Files         605      605              
  Lines       45025    45043      +18     
  Branches      787      787              
==========================================
+ Hits        34129    34132       +3     
- Misses      10808    10823      +15     
  Partials       88       88              
Flag Coverage Δ
frontend 54.86% <ø> (-0.13%) ⬇️
python 84.00% <ø> (-0.03%) ⬇️
ruby-api 48.97% <ø> (ø)
ruby-backend 81.06% <81.25%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@ryanmelt ryanmelt merged commit d42a5ad into main Aug 14, 2024
26 checks passed
@ryanmelt ryanmelt deleted the item_offset branch August 14, 2024 19:21
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.

2 participants