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

refactor: some string-related code cleanup/refactor #1463

Merged
merged 6 commits into from
May 7, 2024

Conversation

ClementTsang
Copy link
Owner

Description

A description of the change, what it does, and why it was made. If relevant (such as any change that modifies the UI), please provide screenshots of the changes:

Issue

If applicable, what issue does this address?

Closes: #

Testing

If relevant, please state how this was tested. All changes must be tested to work:

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

Copy link

codecov bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 83.10185% with 73 lines in your changes are missing coverage. Please review.

Project coverage is 55.93%. Comparing base (bcc8917) to head (4fac790).

Files Patch % Lines
src/utils/strings.rs 93.72% 18 Missing ⚠️
src/widgets/process_table/proc_widget_data.rs 40.00% 12 Missing ⚠️
src/utils/data_prefixes.rs 65.62% 11 Missing ⚠️
src/widgets/disk_table.rs 50.00% 10 Missing ⚠️
src/widgets/process_table/sort_table.rs 0.00% 8 Missing ⚠️
src/widgets/temperature_table.rs 14.28% 6 Missing ⚠️
src/data_conversion.rs 89.65% 3 Missing ⚠️
src/lib.rs 60.00% 2 Missing ⚠️
src/canvas/components/data_table.rs 0.00% 1 Missing ⚠️
src/canvas/components/data_table/sortable.rs 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1463      +/-   ##
==========================================
+ Coverage   55.84%   55.93%   +0.09%     
==========================================
  Files          97       99       +2     
  Lines       18190    18191       +1     
==========================================
+ Hits        10159    10176      +17     
+ Misses       8031     8015      -16     
Flag Coverage Δ
macos-12 39.31% <65.27%> (-0.01%) ⬇️
ubuntu-latest 58.54% <83.10%> (+0.09%) ⬆️
windows-2019 39.49% <65.73%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ClementTsang ClementTsang merged commit 398bf59 into main May 7, 2024
34 of 36 checks passed
@ClementTsang ClementTsang deleted the truncate_str_opt_2 branch May 7, 2024 06:03
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.

1 participant