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

Get rid of hash function in MapOf factory functions #108

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

puzpuzpuz
Copy link
Owner

@puzpuzpuz puzpuzpuz commented Oct 22, 2023

Also upgrades the library version to v3 since it's a breaking change.

All New*MapOf* functions are now replaced with the NewMapOf and NewMapOfPresized functions. There is no longer a need to provide a user-defined hash function.

@puzpuzpuz puzpuzpuz self-assigned this Oct 22, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2023

Codecov Report

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

Comparison is base (92b8269) 93.69% compared to head (70d4e1e) 96.83%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #108      +/-   ##
==========================================
+ Coverage   93.69%   96.83%   +3.14%     
==========================================
  Files           9        8       -1     
  Lines        1252     1139     -113     
==========================================
- Hits         1173     1103      -70     
+ Misses         74       30      -44     
- Partials        5        6       +1     
Files Coverage Δ
counter.go 100.00% <100.00%> (ø)
map.go 97.33% <100.00%> (ø)
mapof.go 96.76% <100.00%> (+0.89%) ⬆️
rbmutex.go 96.22% <100.00%> (ø)
util.go 100.00% <ø> (ø)
util_hash.go 76.31% <76.31%> (ø)

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

@puzpuzpuz puzpuzpuz force-pushed the hash-function-less-mapof-v3 branch 2 times, most recently from b3a8173 to f069c08 Compare October 22, 2023 11:33
@puzpuzpuz puzpuzpuz added enhancement New feature or request performance labels Oct 22, 2023
@puzpuzpuz puzpuzpuz force-pushed the hash-function-less-mapof-v3 branch 2 times, most recently from f34b8a4 to 91f38aa Compare October 22, 2023 11:49
Also upgrades library version to v3
@puzpuzpuz puzpuzpuz force-pushed the hash-function-less-mapof-v3 branch from 91f38aa to 70d4e1e Compare October 22, 2023 11:53
@puzpuzpuz puzpuzpuz merged commit f7bf836 into main Oct 22, 2023
@puzpuzpuz puzpuzpuz deleted the hash-function-less-mapof-v3 branch October 22, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants