Skip to content

Conversation

gnalh
Copy link
Collaborator

@gnalh gnalh commented Jun 9, 2025

No description provided.

Copy link

trunk-io bot commented Jun 9, 2025

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@gnalh gnalh force-pushed the missing-code-cov branch from 6e85739 to 25f8a2e Compare June 9, 2025 21:46
Copy link

trunk-staging-io bot commented Jun 9, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@gnalh gnalh force-pushed the missing-code-cov branch from ed025d4 to b2befab Compare June 9, 2025 22:29
Copy link

trunk-io bot commented Jun 9, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.54%. Comparing base (e40f347) to head (948d59c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
context-py/src/lib.rs 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -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()
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

@gnalh gnalh force-pushed the missing-code-cov branch from 948d59c to d007e82 Compare July 8, 2025 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants