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

fix: clone array when deepcloning is enabled and target is an IEnumerble #431

Merged
merged 1 commit into from
May 16, 2023
Merged

fix: clone array when deepcloning is enabled and target is an IEnumerble #431

merged 1 commit into from
May 16, 2023

Conversation

latonz
Copy link
Contributor

@latonz latonz commented May 16, 2023

If the source type is an array, the target type is an IEnumerable, the source should be cloned instead of casted
This also extracts deep cloning enumerable tests into a separate test class.

Fixes an issue similar to #426

…able

If the source type is an array, the target type is an IEnumerable,
the source should be cloned instead of casted
This also extracts deep cloning enumerable tests into a separate test class.
@latonz latonz self-assigned this May 16, 2023
@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #431 (92adf27) into main (b17f666) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
+ Coverage   92.08%   92.15%   +0.07%     
==========================================
  Files         135      135              
  Lines        4282     4282              
  Branches      591      590       -1     
==========================================
+ Hits         3943     3946       +3     
+ Misses        225      224       -1     
+ Partials      114      112       -2     
Impacted Files Coverage Δ
...iptors/MappingBuilders/EnumerableMappingBuilder.cs 96.31% <100.00%> (+1.80%) ⬆️
...Mapperly/Descriptors/UserMethodMappingExtractor.cs 92.98% <100.00%> (+0.04%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@latonz latonz requested a review from ni507 May 16, 2023 14:25
@latonz latonz marked this pull request as ready for review May 16, 2023 14:26
@latonz latonz enabled auto-merge (squash) May 16, 2023 14:26
@latonz latonz merged commit 082d877 into riok:main May 16, 2023
@latonz latonz deleted the 426-enumerable-deep-cloning branch May 16, 2023 14:44
@github-actions
Copy link

🎉 This PR is included in version 2.9.0-next.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@latonz latonz added this to the v2.9.0 milestone Jun 14, 2023
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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