mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
CompositeHash: Skip record initialization when recovering vals
Initializing fields of recovered records caused running &default expression of fields just so that they are re-assigned in the next step with the recovered fields. The second test case still shows that the loop var is initialized as well even though that's not needed. Add tests for iterating over records with &default attributes for both, tables and vectors. Fixes #3267
This commit is contained in:
parent
057bc673a8
commit
aaa81cae5d
9 changed files with 229 additions and 2 deletions
|
@ -0,0 +1,12 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
0, populating vector, expecting 4 my_seq() invocations
|
||||
0, my_seq() invoked
|
||||
1, my_seq() invoked
|
||||
2, my_seq() invoked
|
||||
3, my_seq() invoked
|
||||
4, iterating vector, expecting no my_seq() invocations
|
||||
4, it, 0, [id=1]
|
||||
4, it, 1, [id=2]
|
||||
4, it, 2, [id=3]
|
||||
4, it, 3, [id=4]
|
||||
4, done
|
Loading…
Add table
Add a link
Reference in a new issue