Skip to content

ui: deduplicate code in get_complete_size/get_reduced_size#583

Open
bdrung wants to merge 1 commit intocanonical:mainfrom
bdrung:get_size-dedup
Open

ui: deduplicate code in get_complete_size/get_reduced_size#583
bdrung wants to merge 1 commit intocanonical:mainfrom
bdrung:get_size-dedup

Conversation

@bdrung
Copy link
Copy Markdown
Member

@bdrung bdrung commented Apr 21, 2026

The code in UserInterface.get_complete_size() and UserInterface.get_reduced_size() is quite similar.

Introduce a helper method UserInterface._get_size() to avoid this duplicate code.

The code in `UserInterface.get_complete_size()` and
`UserInterface.get_reduced_size()` is quite similar.

Introduce a helper method `UserInterface._get_size()` to avoid this
duplicate code.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.44%. Comparing base (be024b6) to head (e9fb1e1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #583      +/-   ##
==========================================
- Coverage   84.45%   84.44%   -0.01%     
==========================================
  Files         104      104              
  Lines       20939    20935       -4     
  Branches     3212     3211       -1     
==========================================
- Hits        17683    17679       -4     
  Misses       2816     2816              
  Partials      440      440              

☔ 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.

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