MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / turnOf

Function turnOf

graph-ui/src/chat/AtlasChatPanel.test.tsx:53–73  ·  view source on GitHub ↗
(overrides: Partial<ChatTurn> = {})

Source from the content-addressed store, hash-verified

51];
52
53function 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
75async function render(props: Partial<Parameters<typeof AtlasChatPanel>[0]> = {}): Promise<{
76 onOpenCard: ReturnType<typeof vi.fn>;

Callers 2

renderFunction · 0.70

Calls 1

checkCitationsFunction · 0.90

Tested by

no test coverage detected