Closed hanbings closed 1 month ago
Attention: Patch coverage is 94.11765%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 58.88%. Comparing base (
baa09ba
) to head (c0b8cd0
).
Files | Patch % | Lines |
---|---|---|
src/find/matchers/mod.rs | 0.00% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
please add integration tests too to trigger the error and make sure we are handling it correctly
Thanks.
I added an command test for the -a/c/mtime
directive in find_cmd_tests.rs
.
But it may be that Codecov does not detect the diff because the PR only fixes regular expressions, so the coverage changes cannot be seen in the Codecov report.
convert_arg_to_comparable_value() as mentioned in https://github.com/uutils/findutils/pull/355#issuecomment-2067613423 parses some strange characters.
The original regular expression was
([+-]?)(\d+)$
, which did a partial match and only included1%2
of2
as part of the match. After adding the^
limiter (^([+-]?)(\d+)$
), the expression can be restricted to only match+
-
or0-9
.