SiriScenarioExpectationBuilder
A result builder that collects the expectations you attach to a scenario.
Declaration
@resultBuilder enum SiriScenarioExpectationBuilderOverview
Each buildExpression is a kind this level accepts; a kind without one here does not compile in this level’s block.
A scenario-level expectation is checked against every turn together, so this level takes Calls, Finds, OnScreen and Loads. SiriResponse is not one of them: a Siri response expectation is checked on the turn that produces the response, so it is written in a turn’s block only.
Topics
Building scenario expectations
buildArray(_:)buildBlock(_:)buildEither(first:)buildEither(second:)buildExpression(_:)buildOptional(_:)