(overrides: Partial<ChatTurn> = {})
| 51 | ]; |
| 52 | |
| 53 | function turnOf(overrides: Partial<ChatTurn> = {}): ChatTurn { |
| 54 | const answer = overrides.answer |
| 55 | ?? 'createUser is called by registerUserRoutes at line 15 [K2].'; |
| 56 | return { |
| 57 | id: 1, |
| 58 | question: 'Wer ruft createUser?', |
| 59 | status: 'answered', |
| 60 | klass: 'who-calls', |
| 61 | rule: 'who-calls-words', |
| 62 | depth: 1, |
| 63 | cards: CARDS, |
| 64 | tokens: 120, |
| 65 | budget: 2300, |
| 66 | gaps: [], |
| 67 | sources: ['semantic IR of the subject (caller rows with their call-site lines)'], |
| 68 | answer, |
| 69 | check: checkCitations(answer, CARDS.map((card) => card.id)), |
| 70 | message: '', |
| 71 | ...overrides, |
| 72 | }; |
| 73 | } |
| 74 | |
| 75 | async function render(props: Partial<Parameters<typeof AtlasChatPanel>[0]> = {}): Promise<{ |
| 76 | onOpenCard: ReturnType<typeof vi.fn>; |
no test coverage detected