(
condition: unknown,
step: string,
args: string[],
result: CliJsonResult,
opts?: AssertResultOptions,
)
| 105 | } |
| 106 | |
| 107 | function assertResult( |
| 108 | condition: unknown, |
| 109 | step: string, |
| 110 | args: string[], |
| 111 | result: CliJsonResult, |
| 112 | opts?: AssertResultOptions, |
| 113 | ): void { |
| 114 | if (condition) { |
| 115 | return; |
| 116 | } |
| 117 | failWithContext(step, args, result, opts?.detail ?? 'assertion failed'); |
| 118 | } |
| 119 | |
| 120 | function failWithContext( |
| 121 | step: string, |
nothing calls this directly
no test coverage detected