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

increase test coverage of cairo-native-run #593

Merged
merged 4 commits into from
May 17, 2024

Conversation

tcoratger
Copy link
Collaborator

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.

@tcoratger
Copy link
Collaborator Author

@edg-l Concerning check_compiler_path, shouldn't we check also that, if the path leads to a file, the extension of this file should be .cairo?

@codecov-commenter
Copy link

codecov-commenter commented May 14, 2024

Codecov Report

Attention: Patch coverage is 99.65986% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 89.03%. Comparing base (e89d38a) to head (583fa4b).
Report is 1 commits behind head on main.

Files Patch % Lines
src/bin/cairo-native-run.rs 99.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #593      +/-   ##
==========================================
+ Coverage   88.63%   89.03%   +0.39%     
==========================================
  Files         109      109              
  Lines       34905    35174     +269     
==========================================
+ Hits        30938    31316     +378     
+ Misses       3967     3858     -109     

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

edg-l
edg-l previously approved these changes May 14, 2024
@edg-l edg-l added the review-ready A PR that is ready for review label May 14, 2024
let felt = jitvalue_to_felt(value);
felts.extend(felt);
let mut felts = vec![(*tag).into()];
// felts.push((*tag).into());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you comment that line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, we can just remove it as the vec is initialized on the line before with the tag. Just fixed

Copy link
Collaborator

@juanbono juanbono left a comment

Choose a reason for hiding this comment

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

Check comment

@edg-l edg-l added this pull request to the merge queue May 17, 2024
Merged via the queue into lambdaclass:main with commit af38e51 May 17, 2024
9 checks passed
Gerson2102 pushed a commit to Gerson2102/cairo_native that referenced this pull request May 26, 2024
* increase test coverage of cairo-native-run

* add unit tests for result_to_runresult

* Update src/bin/cairo-native-run.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-ready A PR that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants