Skip to content
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

File walk alignments #8560

Merged
merged 7 commits into from
Apr 25, 2024
Merged

File walk alignments #8560

merged 7 commits into from
Apr 25, 2024

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

Kotlin's `walk()`, in contrast to Java's `listFiles()`, also returns the
directory to walk itself. So unless filtering for files is done anyway,
special care needs to be taken to deal with the directory being walked.

So change the code here a bit to explicitly deal with the walked
directory as part of the filtering.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth requested a review from a team as a code owner April 24, 2024 09:33
Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.68%. Comparing base (bee7613) to head (7da0deb).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8560   +/-   ##
=========================================
  Coverage     67.68%   67.68%           
  Complexity     1006     1006           
=========================================
  Files           246      246           
  Lines          7924     7924           
  Branches        883      883           
=========================================
  Hits           5363     5363           
  Misses         2181     2181           
  Partials        380      380           
Flag Coverage Δ
funTest-docker 65.35% <ø> (ø)
funTest-non-docker 34.71% <ø> (ø)
test 37.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sschuberth sschuberth force-pushed the file-walk-alignments branch from ac0dc6f to fcb4cea Compare April 24, 2024 10:19
`list(Files)` is a nullable Java platform call, so prefer the portable
and more powerful Kotlin `walk`.

Signed-off-by: Sebastian Schuberth <[email protected]>
Make this more similar to the code used in other tests in the same file.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth force-pushed the file-walk-alignments branch from fcb4cea to 7da0deb Compare April 24, 2024 10:21
@sschuberth sschuberth requested review from fviernau and a team April 25, 2024 09:33
@sschuberth sschuberth merged commit 0e56143 into main Apr 25, 2024
22 checks passed
@sschuberth sschuberth deleted the file-walk-alignments branch April 25, 2024 09:58
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