https://linen.dev logo
d

Debraj Manna

06/14/2023, 9:53 AM
What does
insertionIndex
mean in a stub mapping generated via the record and replay?
t

Tom

06/14/2023, 10:22 AM
It’s the ordering field for stubs. Since the order matters when evaluating a set of stubs of equal priority, this ensures that when they’re file based they end up in the same position after being reloaded.
👍 1
d

Debraj Manna

06/16/2023, 6:27 AM
If the value is not specified in a stub mapping, what is the default value for this field ?
t

Tom

06/16/2023, 10:26 AM
It’ll be whatever the existing largest is +1
👍 1
7 Views