mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

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
19 lines
542 B
Text
19 lines
542 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
0, done parsing
|
|
0, my_seq() invoked
|
|
1, my_seq() invoked
|
|
2, populating table, expecting 8 my_seq() invocations
|
|
2, my_seq() invoked
|
|
3, my_seq() invoked
|
|
4, my_seq() invoked
|
|
5, my_seq() invoked
|
|
6, my_seq() invoked
|
|
7, my_seq() invoked
|
|
8, my_seq() invoked
|
|
9, my_seq() invoked
|
|
10, iterating table, expecting no my_seq() invocations
|
|
10, it, [id=8], [id=7]
|
|
10, it, [id=6], [id=5]
|
|
10, it, [id=4], [id=3]
|
|
10, it, [id=10], [id=9]
|
|
10, done
|