Skip to content

[IO-807] Characterization test for broken symlinks when copying directories#547

Merged
garydgregory merged 5 commits into
apache:masterfrom
elharo:IO-807
Jan 1, 2024
Merged

[IO-807] Characterization test for broken symlinks when copying directories#547
garydgregory merged 5 commits into
apache:masterfrom
elharo:IO-807

Conversation

@elharo

@elharo elharo commented Jan 1, 2024

Copy link
Copy Markdown
Contributor

This establishes the current behavior and makes sure we don't accidentally change it.

@garydgregory

@codecov-commenter

codecov-commenter commented Jan 1, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a229f90) 85.95% compared to head (08abe1a) 85.95%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #547   +/-   ##
=========================================
  Coverage     85.95%   85.95%           
  Complexity     3480     3480           
=========================================
  Files           230      230           
  Lines          8225     8225           
  Branches        960      960           
=========================================
  Hits           7070     7070           
  Misses          865      865           
  Partials        290      290           

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

final File destination = new File(tempDirFile, "destination");
try {
FileUtils.copyDirectory(sourceDirectory, destination);
fail("ignored broken link");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use assertThrows().

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@garydgregory garydgregory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elharo
Thank you for your PR. Please see my comment in the test.

@garydgregory garydgregory merged commit 9e0b517 into apache:master Jan 1, 2024
@elharo elharo deleted the IO-807 branch January 1, 2024 18:06
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.

3 participants