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

Extend global and txn field tests for all TEAL versions and protocols #2669

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

algorandskiy
Copy link
Contributor

Summary

  • Move tests from backwardCompat_test.go to fields_test.go
  • Check every field on a version before it was introduced
  • Enable txna fields checks
  • Fix TestGlobal to prevent invalid version specs in tests map

Test Plan

This is tests improvement PR

tsachiherman
tsachiherman previously approved these changes Aug 3, 2021
Copy link
Contributor

@tsachiherman tsachiherman left a comment

Choose a reason for hiding this comment

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

Looks great, 1 small possible improvement.

jannotti
jannotti previously approved these changes Aug 3, 2021
@@ -52,6 +52,7 @@ func defaultEvalProtoWithVersion(version uint64) config.ConsensusParams {
return config.ConsensusParams{
LogicSigVersion: version,
LogicSigMaxCost: 20000,
Application: version >= appsEnabledVersion,
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

* Move tests from backwardCompat_test.go to fields_test.go
* Check every field on a version before it was introduced
* Enable txna fields checks
* Fix TestGlobal to prevent invalid version specs in tests map
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2021

Codecov Report

Merging #2669 (0510b0a) into master (2a36601) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2669      +/-   ##
==========================================
- Coverage   47.05%   47.04%   -0.01%     
==========================================
  Files         349      349              
  Lines       55833    55833              
==========================================
- Hits        26271    26266       -5     
- Misses      26613    26620       +7     
+ Partials     2949     2947       -2     
Impacted Files Coverage Δ
agreement/cryptoVerifier.go 75.73% <0.00%> (-2.21%) ⬇️
agreement/proposalManager.go 96.07% <0.00%> (-1.97%) ⬇️
network/wsPeer.go 74.37% <0.00%> (-0.84%) ⬇️
catchup/service.go 69.35% <0.00%> (-0.78%) ⬇️
network/requestTracker.go 70.68% <0.00%> (-0.44%) ⬇️
ledger/acctupdates.go 62.38% <0.00%> (+0.08%) ⬆️
data/transactions/logic/assembler.go 82.27% <0.00%> (+0.29%) ⬆️
cmd/tealdbg/debugger.go 73.86% <0.00%> (+1.00%) ⬆️

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 2a36601...0510b0a. Read the comment docs.

@tsachiherman tsachiherman merged commit 5d7ce82 into algorand:master Aug 3, 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.

4 participants