Skip to content

Conversation

@jannotti
Copy link
Contributor

@jannotti jannotti commented Oct 6, 2025

NearZeros had to be improved to avoid looping on recursive types. But it's now easy to write easy Equal() tests that will fail if you add a field to a type and forget to modify Equal(). Caught a bug in EvalDelta.Equal().

Summary

Test Plan

NeasrZeros had to be improved to avoid looping on recursive types. But
it's now easy to write easy Equal() tests that will fail if you add a
field to a type and forget to modify Equal().  Caught a bug in
EvalDelta.Equal().
@jannotti jannotti self-assigned this Oct 6, 2025
@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.73%. Comparing base (395e714) to head (16ed4e2).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
data/basics/testing/nearzero.go 54.54% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6458      +/-   ##
==========================================
- Coverage   50.90%   50.73%   -0.17%     
==========================================
  Files         665      658       -7     
  Lines      111546   111459      -87     
==========================================
- Hits        56780    56554     -226     
- Misses      51899    52034     +135     
- Partials     2867     2871       +4     

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

cce
cce previously approved these changes Oct 6, 2025
Copy link
Contributor

@cce cce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is also

  • verify.GroupContext
  • crypto.MultisigSig
    and that's it for Equal AFAIK

@jannotti jannotti requested a review from gmalouf October 6, 2025 18:20
@jannotti jannotti merged commit d1da52e into algorand:master Oct 6, 2025
39 checks passed
cce added a commit to cce/go-algorand that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants