(scenarioId: string)
| 194 | |
| 195 | // Note: this relies on the naming convention that the scenario ID is of the form <name>_input<index>_evaluate |
| 196 | const extractInputIndexFromScenario = (scenarioId: string): number => { |
| 197 | const match = scenarioId.match(/_input(\d+)_/); |
| 198 | if (!match) throw new Error(`Invalid scenario ID: ${scenarioId}`); |
| 199 | return parseInt(match[1]); |
| 200 | }; |
| 201 | |
| 202 | type Program = AuthenticationProgramCommon; |
| 203 | type CreateProgramResult = { vm: VM, program: Program }; |
no outgoing calls
no test coverage detected