Skip to content

report: remove dead code from internal helper functions#541

Open
bdrung wants to merge 2 commits intocanonical:mainfrom
bdrung:dead-code
Open

report: remove dead code from internal helper functions#541
bdrung wants to merge 2 commits intocanonical:mainfrom
bdrung:dead-code

Conversation

@bdrung
Copy link
Member

@bdrung bdrung commented Jun 12, 2025

Report.add_proc_info will always set proc_pid_fd. So the helper function _read_proc_link is not needed any more. The case for dir_fd being None in _read_proc_file can be dropped and the parameter pid will not be needed any more.

bdrung added 2 commits June 12, 2025 11:29
`Report.add_proc_info` will always set `proc_pid_fd`. So the helper
function `_read_proc_link` is not needed any more.
`Report.add_proc_info` will always set `proc_pid_fd`. So the case for
`dir_fd` being `None` in `_read_proc_file` can be dropped and the
parameter `pid` will not be needed any more.
@codecov
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.21%. Comparing base (f713fe1) to head (b1e3b6e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #541   +/-   ##
=======================================
  Coverage   84.21%   84.21%           
=======================================
  Files         104      104           
  Lines       20778    20772    -6     
  Branches     3253     3251    -2     
=======================================
- Hits        17498    17494    -4     
+ Misses       2827     2826    -1     
+ Partials      453      452    -1     

☔ 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