Contents

turn(for:)

Returns the turn produced by the scenario turn with this identity, if it ran.

Declaration

func turn(for id: UUID) -> SiriTranscript.Turn?

Discussion

Lookup by identity rather than index: a scenario that was interrupted has fewer transcript turns than scenario turns, and positional lookup would grade turn three’s expectations against turn two’s observations.

See Also

Inspecting a transcript