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

Go update #46

Merged
merged 8 commits into from
Feb 13, 2024
Merged

Go update #46

merged 8 commits into from
Feb 13, 2024

Conversation

roman-khimov
Copy link
Member

No description provided.

It makes no sense, checkSum() doesn't modify state in any way.

Signed-off-by: Roman Khimov <[email protected]>
 * don't allocate useless buffers
 * compare using constant-time function

Signed-off-by: Roman Khimov <[email protected]>
I've honestly tried reusing AppendUint64() in Sum(), but it only leads to
additional allocations, so not worth the trouble. Other than that, not a lot
to improve here.

Signed-off-by: Roman Khimov <[email protected]>
Signed-off-by: Roman Khimov <[email protected]>
Tests are perfectly fine with this kind of random data.

Signed-off-by: Roman Khimov <[email protected]>
smallhive
smallhive previously approved these changes Feb 12, 2024
Packages specified don't exist here (copy/paste problem), we can count all of
things in this repo..

Signed-off-by: Roman Khimov <[email protected]>
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

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

Comparison is base (b9676d0) 0.00% compared to head (9716b39) 47.56%.
Report is 21 commits behind head on master.

Files Patch % Lines
cmd/homo/main.go 0.00% 1 Missing ⚠️
tz/hash.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #46       +/-   ##
===========================================
+ Coverage        0   47.56%   +47.56%     
===========================================
  Files           0       10       +10     
  Lines           0      534      +534     
===========================================
+ Hits            0      254      +254     
- Misses          0      260      +260     
- Partials        0       20       +20     

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

@roman-khimov roman-khimov merged commit 08bc970 into master Feb 13, 2024
10 checks passed
@roman-khimov roman-khimov deleted the go-update branch February 13, 2024 06:05
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