-
Notifications
You must be signed in to change notification settings - Fork 4
[wip] Add missing code coverage #650
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
base: main
Are you sure you want to change the base?
Conversation
Merging to
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #650 +/- ##
==========================================
- Coverage 74.09% 69.54% -4.55%
==========================================
Files 64 60 -4
Lines 14026 12128 -1898
==========================================
- Hits 10393 8435 -1958
- Misses 3633 3693 +60 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
context-py/src/lib.rs
Outdated
@@ -61,7 +61,7 @@ fn branch_class_to_string(branch_class: env::parser::BranchClass) -> String { | |||
#[gen_stub_pyfunction] | |||
#[pyfunction] | |||
fn ci_platform_to_string(ci_platform: env::parser::CIPlatform) -> String { | |||
ci_platform.to_string() | |||
ci_platform.to_string().into() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was seeing this error when running the code coverage report
error[E0308]: mismatched types
--> context-py/src/lib.rs:64:5
|
63 | fn ci_platform_to_string(ci_platform: env::parser::CIPlatform) -> String {
| ------ expected `String` because of return type
64 | ci_platform.to_string()
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `&str`
|
help: call `Into::into` on this expression to convert `&str` into `String`
|
64 | ci_platform.to_string().into()
| +++++++
cargo llvm-cov --no-report --doc | ||
cargo llvm-cov report --doctests --lcov --output-path lcov.info | ||
|
||
- name: Run tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out this is redundant and not needed
No description provided.