-
Notifications
You must be signed in to change notification settings - Fork 523
Add unit test to avoid new string fields
#3101
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3101 +/- ##
==========================================
- Coverage 43.68% 43.66% -0.03%
==========================================
Files 390 390
Lines 86681 86681
==========================================
- Hits 37868 37845 -23
- Misses 42796 42817 +21
- Partials 6017 6019 +2
Continue to review full report at Codecov.
|
data/bookkeeping/encoding_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nicer to have this as Payset\[]SignedTxnWithAD\SignedTxn\Txn\AssetConfigTxnFields, but given that this is a deterministic list, it's quite de-motivating to make the extra effort.
tsachiherman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great.
|
I just realized this is missing |
|
Found the issue, the seen set was being too aggressive, meaning some paths weren't properly checked. Fixed now. |
|
Would be nice to do the same for |
985856f to
0969ee2
Compare
* Add unit test to check for string fields * Fix seen set and add exceptions for state deltas * Also check AccountData * Minor rename * Add license * Accidentally pushed to origin, need new hash
Summary
Add a unit test which fails if any new
stringtypes are referenced frombookkeeping.Block.Closes #3093. See that issue for more context.
Test Plan
This is a test.