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 diff helper #131

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Add diff helper #131

merged 1 commit into from
Nov 14, 2023

Conversation

kwridan
Copy link
Contributor

@kwridan kwridan commented Nov 11, 2023

Describe your changes

  • A new diff helper has been added for common comparator operations of diffing common elements
  • The helper introduces a new DiffComparable type which descriptors can conform to
  • Where possible comparators and descriptors were migrated to leverage it

Testing performed

  • Verify all unit and integration tests continue to pass (i.e. no diff in output format)

Additional context

While working on #130 I noticed there was a small tidy up needed that wasn't directly related to platform filters but would aid its development so was pulled out as a separate change.

Copy link

codecov bot commented Nov 11, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2b7edf9) 96.95% compared to head (603936f) 97.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
+ Coverage   96.95%   97.04%   +0.08%     
==========================================
  Files          50       50              
  Lines        2894     2874      -20     
==========================================
- Hits         2806     2789      -17     
+ Misses         88       85       -3     
Files Coverage Δ
...rces/XCDiffCore/Comparator/HeadersComparator.swift 100.00% <100.00%> (ø)
...Core/Comparator/LinkedDependenciesComparator.swift 96.15% <100.00%> (+2.25%) ⬆️
...rces/XCDiffCore/Comparator/SourcesComparator.swift 100.00% <100.00%> (ø)
...CDiffCore/Comparator/SwiftPackagesComparator.swift 100.00% <100.00%> (+2.63%) ⬆️
...e/Library/Descriptors/SwiftPackageDescriptor.swift 91.42% <100.00%> (+1.77%) ⬆️
Sources/XCDiffCore/Library/TargetsHelper.swift 95.11% <100.00%> (+0.27%) ⬆️
...ces/XCDiffCore/Library/Comparator+Extensions.swift 98.64% <97.29%> (-1.36%) ⬇️

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

- A new diff helper has been added for common comparator operations of diffing common elements
- The helper introduces a new `DiffComparable` protocol which descriptors can conform to
- Where possible comparators and descriptors were migrated to leverage it

Test Plan:

- Verify all unit and integration tests continue to pass (i.e. no diff in output format)

Signed-off-by: Kassem Wridan <kwridan@bloomberg.net>
Copy link
Contributor

@marciniwanicki marciniwanicki left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @kwridan 👍

@kwridan kwridan merged commit f1d3be0 into bloomberg:main Nov 14, 2023
5 checks passed
@kwridan kwridan deleted the update/consolidate-diffs branch November 14, 2023 08:28
@kwridan kwridan restored the update/consolidate-diffs branch November 25, 2023 08:41
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