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

Function fakeObservations

graph-ui/src/traces/bug-paths.test.ts:177–196  ·  view source on GitHub ↗
(over: Partial<BugPathObservations> = {})

Source from the content-addressed store, hash-verified

175};
176
177function fakeObservations(over: Partial<BugPathObservations> = {}): BugPathObservations {
178 return {
179 async trace(_project, from) {
180 if (from === 'p.src.server.main') {
181 return MAIN_TO_CREATE_USER;
182 }
183 if (from === 'p.src.services.userService.create') {
184 return CREATE_TO_CREATE_USER;
185 }
186 return NOT_A_CALLABLE;
187 },
188 async flows() {
189 return FLOW_SUMMARIES;
190 },
191 async flow(_project, id) {
192 return id === 4 ? FLOW_FROM_CREATE_USER : UNRELATED_FLOW;
193 },
194 ...over,
195 };
196}
197
198/** Eine Fassung ohne jede Beobachtung: derselbe Graph, kein Lauf eingespielt. */
199function noRecording(): BugPathObservations {

Callers 3

noRecordingFunction · 0.85
bug-paths.test.tsFile · 0.85
traceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected