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

Check error types in vm_core.rs + simplify code #837

Merged
merged 9 commits into from
Feb 15, 2023
Merged

Conversation

fmoletta
Copy link
Member

@fmoletta fmoletta commented Feb 14, 2023

  • Revise the errors returned and add the necessary variants/improve the existing ones
  • Simplify some code
  • Fix is_zero function -> its supposed to check if the offset is >= 0 in the case of relocatables, which is an impossible case. The fn no longer returns a result
  • Implement AddAssign for Relocatable

@fmoletta fmoletta changed the title Check error types Check error types in vm_core.rs Feb 14, 2023
@fmoletta fmoletta changed the title Check error types in vm_core.rs Check error types in vm_core.rs + simplify code Feb 14, 2023
@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Merging #837 (5d26b18) into main (2410f6b) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #837      +/-   ##
==========================================
+ Coverage   97.10%   97.13%   +0.03%     
==========================================
  Files          69       69              
  Lines       28672    28652      -20     
==========================================
- Hits        27842    27832      -10     
+ Misses        830      820      -10     
Impacted Files Coverage Δ
src/types/relocatable.rs 97.42% <100.00%> (+0.04%) ⬆️
src/vm/vm_core.rs 97.43% <100.00%> (+0.30%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Juan-M-V Juan-M-V added this pull request to the merge queue Feb 15, 2023
Merged via the queue into main with commit 3bb8054 Feb 15, 2023
@Juan-M-V Juan-M-V deleted the check-error-types branch February 15, 2023 14:57
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.

None yet

3 participants