Metric
A named metric that carries a result value.
Declaration
struct MetricMentioned in
Overview
Use Metric to define a named measurement. The factory methods (passing, failing, scoring, ignore) return a new Metric with the result stored inside.
Here’s how you create a custom metric:
let metric = Metric("Accuracy")
let result = metric.passing(rationale: "Exact match")