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

feat: Add MapEntries function #216

Merged
merged 7 commits into from Oct 10, 2022
Merged

feat: Add MapEntries function #216

merged 7 commits into from Oct 10, 2022

Conversation

skimhugo
Copy link
Contributor

Add a method to transform map[k]v to a new map[s]r according to a given transformer to all entries.

@codecov-commenter
Copy link

Codecov Report

Base: 98.45% // Head: 90.34% // Decreases project coverage by -8.10% ⚠️

Coverage data is based on head (4aad748) compared to base (f44773e).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 4aad748 differs from pull request most recent head 09e62a3. Consider uploading reports for the commit 09e62a3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #216      +/-   ##
==========================================
- Coverage   98.45%   90.34%   -8.11%     
==========================================
  Files          15       15              
  Lines        1812     1658     -154     
==========================================
- Hits         1784     1498     -286     
- Misses         26      157     +131     
- Partials        2        3       +1     
Flag Coverage Δ
unittests 90.34% <100.00%> (-8.11%) ⬇️

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

Impacted Files Coverage Δ
map.go 96.72% <100.00%> (+0.26%) ⬆️
tuples.go 63.37% <0.00%> (-36.63%) ⬇️
errors.go 92.37% <0.00%> (-6.16%) ⬇️
channel.go 87.64% <0.00%> (-4.78%) ⬇️
test.go 72.72% <0.00%> (-4.20%) ⬇️
slice.go 97.56% <0.00%> (-0.12%) ⬇️
math.go 100.00% <0.00%> (ø)
retry.go 100.00% <0.00%> (ø)
string.go 100.00% <0.00%> (ø)
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@samber
Copy link
Owner

samber commented Oct 10, 2022

Hi @skimhugo and thanks for this first contribution.

This one is much appreciated! Let's merge.

@samber samber merged commit a28cc0b into samber:master Oct 10, 2022
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.

None yet

3 participants