Contents

subject(from:)

Produces the subject of evaluation from a given sample.

Declaration

nonisolated(nonsending) func subject(from sample: Self.Sample) async throws -> Self.Subject

Parameters

  • sample:

    The input sample.

Mentioned in

Return Value

The subject of evaluation.

Discussion

Implement this method to run your system under test and return the subject that evaluators will measure.

See Also

Testing an intelligent feature