Skip to content

Conversation

@tsachiherman
Copy link
Contributor

@tsachiherman tsachiherman commented Oct 26, 2021

Summary

Refactor internal ledger evaluator testing to use the real ledger instead of using a dummy ledger.
In order to do this, I moved the related tests into an "internal_test" package. That allowed me to import both "ledger/internal" as well as "ledger", and conduct the test against a real ledger.

Test Plan

These are tests.

@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2021

Codecov Report

Merging #3149 (38c185a) into master (ca3e877) will decrease coverage by 3.88%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3149      +/-   ##
==========================================
- Coverage   43.78%   39.90%   -3.89%     
==========================================
  Files         391      391              
  Lines       86880    86880              
==========================================
- Hits        38041    34667    -3374     
- Misses      42806    46588    +3782     
+ Partials     6033     5625     -408     
Impacted Files Coverage Δ
crypto/merklearray/worker.go 0.00% <0.00%> (-100.00%) ⬇️
crypto/compactcert/structs.go 0.00% <0.00%> (-100.00%) ⬇️
agreement/agreementtest/keyManager.go 0.00% <0.00%> (-100.00%) ⬇️
daemon/algod/api/server/lib/middlewares/auth.go 0.00% <0.00%> (-100.00%) ⬇️
agreement/agreementtest/simulate.go 0.00% <0.00%> (-87.68%) ⬇️
cmd/algofix/deadlock.go 3.12% <0.00%> (-84.38%) ⬇️
crypto/merklearray/partial.go 0.00% <0.00%> (-84.10%) ⬇️
crypto/onetimesig.go 0.00% <0.00%> (-76.28%) ⬇️
data/account/rootInstall.go 0.00% <0.00%> (-75.00%) ⬇️
crypto/merklearray/merkle.go 0.00% <0.00%> (-74.70%) ⬇️
... and 113 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca3e877...38c185a. Read the comment docs.

@tsachiherman tsachiherman requested a review from jannotti October 26, 2021 23:49
@tsachiherman tsachiherman marked this pull request as ready for review October 26, 2021 23:49
@tsachiherman tsachiherman changed the title ledger: refactor internal tests ledger: refactor ledger internal tests Oct 26, 2021
@tsachiherman tsachiherman merged commit 729e597 into algorand:master Oct 27, 2021
@tsachiherman tsachiherman deleted the tsachi/ledgertests branch October 27, 2021 03:03
cce pushed a commit to cce/go-algorand that referenced this pull request Nov 3, 2021
Summary
Refactor internal ledger evaluator testing to use the real ledger instead of using a dummy ledger.
In order to do this, I moved the related tests into an "internal_test" package. That allowed me to import both "ledger/internal" as well as "ledger", and conduct the test against a real ledger.

Test Plan
These are tests.
@egieseke egieseke mentioned this pull request Nov 23, 2021
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