Skip to main content

judgeInjection

@forge/monorepo


@forge/monorepo / backend/src / judgeInjection

Function: judgeInjection()

judgeInjection(result): InjectionVerdict

Defined in: backend/src/loadtest/injection.ts:206

Judge a result against the mode's declared expectation.

Separate from running it, so the judgement is testable against a fabricated result — including the results that must fail. A verdict function only ever exercised by passing runs is one that might return "passed" for everything, and nothing would reveal that.

Parameters

result

InjectionResult

Returns

InjectionVerdict