Nexus-Mods / NexusMods.Paths

Custom path library used by NexusMods.App.
https://nexus-mods.github.io/NexusMods.Paths/
GNU General Public License v3.0
6 stars 0 forks source link

Add deconstruction to FileTreeNode for cleaner tests #13

Closed halgari closed 1 year ago

halgari commented 1 year ago

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.

codecov-commenter commented 1 year ago

Codecov Report

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

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

Additional details and impacted files ```diff @@ 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](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/13/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | Coverage Δ | | |---|---|---| | [Linux](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/13/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | `76.76% <100.00%> (+0.05%)` | :arrow_up: | | [Windows](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/13/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | `76.76% <100.00%> (+0.05%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods) | Coverage Δ | | |---|---|---| | [src/NexusMods.Paths/FileTree/FileTreeNode.cs](https://app.codecov.io/gh/Nexus-Mods/NexusMods.Paths/pull/13?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nexus-Mods#diff-c3JjL05leHVzTW9kcy5QYXRocy9GaWxlVHJlZS9GaWxlVHJlZU5vZGUuY3M=) | `86.59% <100.00%> (+0.57%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.