8000 find: Use matcher_io.set_exit_code() by tavianator · Pull Request #516 · uutils/findutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

find: Use matcher_io.set_exit_code() #516

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

Merged
merged 1 commit into from
Mar 29, 2025
Merged

Conversation

tavianator
Copy link
Contributor

The uucore function has the downside of leaking the failure state
between unrelated tests, because the exit code is global. PR #436
introduced a method on MatcherIO which solves the problem, but future
PRs added new uses of uucore::error::set_exit_code().

The uucore function has the downside of leaking the failure state
between unrelated tests, because the exit code is global.  PR uutils#436
introduced a method on MatcherIO which solves the problem, but future
PRs added new uses of uucore::error::set_exit_code().
Copy link
codecov bot commented Mar 28, 2025

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.57%. Comparing base (f3a70e9) to head (f911610).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/find/matchers/ls.rs 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #516      +/-   ##
==========================================
+ Coverage   87.50%   87.57%   +0.06%     
==========================================
  Files          31       31              
  Lines        6708     6720      +12     
  Branches      299      299              
==========================================
+ Hits         5870     5885      +15     
+ Misses        626      623       -3     
  Partials      212      212              

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

@hanbings hanbings merged commit 8784923 into uutils:main Mar 29, 2025
20 checks passed
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.

2 participants
0