testing/error_coverage.ts view source
(collector: ErrorCoverageCollector, route_specs: RouteSpec[], options?: ErrorCoverageOptions | undefined): void Assert error coverage meets a minimum threshold.
Computes the ratio of exercised error statuses to total declared error
statuses. When min_coverage is 0 (default), logs coverage info without
failing. When > 0, fails if coverage is below the threshold.
collector
the coverage collector with recorded observations
route_specs
route specs to check coverage against
RouteSpec[]options?
threshold and exclusion configuration
ErrorCoverageOptions | undefinedreturns
void