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

Add deconstruction to FileTreeNode for cleaner tests #13

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

halgari
Copy link
Contributor

@halgari halgari commented Aug 29, 2023

Updated FileTreeNode class to include Deconstruct method, enabling more readable testing of path and value. Changes have been applied to both Absolute and Relative FileTreeTests. Deconstruction simplifies asserting equalities and improves overall code readability in tests.

Updated FileTreeNode class to include Deconstruct method, enabling more readable testing of path and value. Changes have been applied to both Absolute and Relative FileTreeTests. Deconstruction simplifies asserting equalities and improves overall code readability in tests.
@halgari halgari requested a review from Al12rs August 29, 2023 13:17
@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05% 🎉

Comparison is base (b3eda87) 77.28% compared to head (5edda07) 77.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   77.28%   77.33%   +0.05%     
==========================================
  Files          35       35              
  Lines        1743     1747       +4     
  Branches      298      298              
==========================================
+ Hits         1347     1351       +4     
  Misses        340      340              
  Partials       56       56              
Flag Coverage Δ
Linux 76.76% <100.00%> (+0.05%) ⬆️
Windows 76.76% <100.00%> (+0.05%) ⬆️

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

Files Changed Coverage Δ
src/NexusMods.Paths/FileTree/FileTreeNode.cs 86.59% <100.00%> (+0.57%) ⬆️

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

@halgari halgari merged commit 723c454 into main Aug 29, 2023
@halgari halgari deleted the deconstruct-tree-nodes branch August 29, 2023 18:10
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