(result: string)
| 111 | |
| 112 | // Helper to assert that the model returned some output |
| 113 | export function assertModelHasOutput(result: string) { |
| 114 | if (!result || result.trim().length === 0) { |
| 115 | throw new Error('Expected LLM to return some output'); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | function contentExists(result: string, content: string | RegExp): boolean { |
| 120 | if (typeof content === 'string') { |
no outgoing calls
no test coverage detected