go-algorand icon indicating copy to clipboard operation
go-algorand copied to clipboard

tests: remove checkSpender duplicate function

Open algorandskiy opened this issue 1 year ago • 3 comments
trafficstars

Summary

While discussing https://github.com/algorand/go-algorand/pull/5757 we found there is a duplicate checkSpender in ledger/apply and data/transactions. This PR eliminates the former and moves appropriate test to the latter package.

Test Plan

Existing tests.

Notes

Similarly to #5965 Merge after https://github.com/algorand/go-algorand/pull/5757 due to conflicts

algorandskiy avatar Mar 22 '24 22:03 algorandskiy

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 56.19%. Comparing base (ff2c966) to head (1bb096a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5966   +/-   ##
=======================================
  Coverage   56.18%   56.19%           
=======================================
  Files         482      482           
  Lines       67989    67989           
=======================================
+ Hits        38199    38204    +5     
+ Misses      27201    27197    -4     
+ Partials     2589     2588    -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 22 '24 22:03 codecov[bot]

I did this in my PR because I didn't want to change them both.

jannotti avatar Mar 22 '24 23:03 jannotti

but TestCheckSpender still in ledger/apply - mb move to data/transaction and it will match

algorandskiy avatar Mar 25 '24 00:03 algorandskiy

If you want to fix the conflict so that we move the unit test, I'd be happy to approve.

jannotti avatar Apr 29 '24 13:04 jannotti

Moved the test and rebased.

algorandskiy avatar Apr 30 '24 16:04 algorandskiy