-
Notifications
You must be signed in to change notification settings - Fork 54
Wrap walkdir::DirEntry in a new type #436
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
Conversation
Commit 65019fb has GNU testsuite comparison:
|
Commit a7a5e4d has GNU testsuite comparison:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #436 +/- ##
==========================================
+ Coverage 66.08% 66.31% +0.22%
==========================================
Files 34 35 +1
Lines 4043 4278 +235
Branches 917 958 +41
==========================================
+ Hits 2672 2837 +165
- Misses 1000 1041 +41
- Partials 371 400 +29 ☔ View full report in Codecov by Sentry. |
Commit 72bb813 has GNU testsuite comparison:
|
Impressive:
|
Commit 276ebda has GNU testsuite comparison:
|
Commit 28f1a43 has GNU testsuite comparison:
|
Commit d5a3423 has GNU testsuite comparison:
|
Commit aba5c66 has GNU testsuite comparison:
|
Commit b194948 has GNU testsuite comparison:
|
find_time() relies on the working directory, but e.g. delete_on_dot_dir() will temporarily change directories, causing find_time() to fail when run in parallel.
The global exit code can polute the results of other tests. Link: uutils/coreutils#5777
The new type wraps DirEntry when possible, but also lets us pass a valid entry to matchers when walkdir returns a broken symlink error. It also implements a Metadata cache (part of uutils#430).
Commit 7b97d74 has GNU testsuite comparison:
|
Will there be more updates here? Should we merge it? |
This should be good to go! Thanks |
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().
Includes #420.
Closes #12. Closes #308. Closes #379. Closes #412. Closes #440. Implements the
Metadata
caching part of #430.