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

rust: Add missing test coverage #711

Merged
merged 2 commits into from
Feb 1, 2021
Merged

rust: Add missing test coverage #711

merged 2 commits into from
Feb 1, 2021

Conversation

axic
Copy link
Member

@axic axic commented Feb 1, 2021

No description provided.

if self.0.is_null() {
return Err(());
}
assert!(!self.0.is_null());
Copy link
Member Author

Choose a reason for hiding this comment

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

Having null here is an error of using the Rust API and not a proper error emitted by the C code.

@@ -153,12 +151,6 @@ impl ExecutionResult {
}
}

impl From<ExecutionResult> for sys::FizzyExecutionResult {
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 has not been used and probably will not be used in this form, rather as a Box<>. Will add it back when needed.

@axic axic requested review from gumb0 and chfast February 1, 2021 16:57
axic added 2 commits February 1, 2021 16:59
The pointer can only be null if there is an invalid usage of the Rust API.
@codecov
Copy link

codecov bot commented Feb 1, 2021

Codecov Report

Merging #711 (0be22da) into master (159d355) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #711      +/-   ##
==========================================
+ Coverage   99.27%   99.32%   +0.04%     
==========================================
  Files          73       73              
  Lines       10883    10885       +2     
==========================================
+ Hits        10804    10811       +7     
+ Misses         79       74       -5     
Flag Coverage Δ
rust 99.61% <100.00%> (+1.96%) ⬆️
spectests 90.84% <ø> (ø)
unittests 99.31% <ø> (ø)

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

Impacted Files Coverage Δ
bindings/rust/src/lib.rs 99.61% <100.00%> (+1.96%) ⬆️

@axic axic merged commit d2cc6d0 into master Feb 1, 2021
@axic axic deleted the rust-tests branch February 1, 2021 17:33
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.

3 participants