Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@kwridan kwridan force-pushed the update/consolidate-diffs branch from db2af93 to 9b2a35e Compare November 11, 2023 18:31
@codecov
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 <[email protected]>
@kwridan kwridan force-pushed the update/consolidate-diffs branch from 9b2a35e to 603936f Compare November 11, 2023 18:35
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
@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