zeek/testing/btest/Baseline/language.table-iterate-record-key-default/output
Arne Welzel aaa81cae5d 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
2023-09-08 13:02:34 +02:00

12 lines
379 B
Text

### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
0, populating table, expecting 4 my_seq() invocations
0, my_seq() invoked
1, my_seq() invoked
2, my_seq() invoked
3, my_seq() invoked
4, iterating table, expecting no my_seq() invocations
4, it, [id=1], 1
4, it, [id=4], 4
4, it, [id=3], 3
4, it, [id=2], 2
4, done