Skip to content

rust: Add missing test coverage#711

Merged
axic merged 2 commits intomasterfrom
rust-tests
Feb 1, 2021
Merged

rust: Add missing test coverage#711
axic merged 2 commits intomasterfrom
rust-tests

Conversation

@axic
Copy link
Copy Markdown
Member

@axic axic commented Feb 1, 2021

No description provided.

Comment thread bindings/rust/src/lib.rs
if self.0.is_null() {
return Err(());
}
assert!(!self.0.is_null());
Copy link
Copy Markdown
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.

Comment thread bindings/rust/src/lib.rs
}
}

impl From<ExecutionResult> for sys::FizzyExecutionResult {
Copy link
Copy Markdown
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 chfast and gumb0 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
Copy Markdown

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