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

Add Generic Cmd Response Protocol and Template Accessor #1017

Merged
merged 6 commits into from
Jan 8, 2024

Conversation

ryanmelt
Copy link
Member

@ryanmelt ryanmelt commented Jan 7, 2024

No description provided.

@ryanmelt ryanmelt requested a review from jmthomas January 7, 2024 19:44
Copy link

codecov bot commented Jan 7, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (b67066d) 75.28% compared to head (56430f5) 75.33%.

Files Patch % Lines
openc3/lib/openc3/accessors/template_accessor.rb 90.41% 7 Missing ⚠️
...enc3/interfaces/protocols/cmd_response_protocol.rb 93.87% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1017      +/-   ##
==========================================
+ Coverage   75.28%   75.33%   +0.04%     
==========================================
  Files         588      590       +2     
  Lines       42990    43114     +124     
  Branches      749      749              
==========================================
+ Hits        32367    32481     +114     
- Misses      10545    10555      +10     
  Partials       78       78              
Flag Coverage Δ
frontend 55.12% <ø> (ø)
python 83.60% <ø> (ø)
ruby-api 48.69% <ø> (ø)
ruby-backend 80.49% <92.12%> (+0.06%) ⬆️

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
Member

@jmthomas jmthomas left a comment

Choose a reason for hiding this comment

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

Cool. I look forward to seeing it in action for a SCPI power supply. :-)

begin
@write_block_queue.pop(true) while @write_block_queue.length > 0
rescue
end
Copy link
Member

Choose a reason for hiding this comment

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

Do you maybe just want a @write_block_queue.clear


module OpenC3
class TemplateAccessor < Accessor
def initialize(packet, left_char = '<', right_char = '>')
Copy link
Member

Choose a reason for hiding this comment

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

So default delimiters are <value> but you also have code to make (value) work. I assume any other non-regex sensitive value like #value# works?

@ryanmelt ryanmelt merged commit 1b77664 into main Jan 8, 2024
14 checks passed
@ryanmelt ryanmelt deleted the cmd_response_protocol_and_template_accessor branch January 8, 2024 20:56
Copy link

sonarqubecloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

3 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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