(over: Partial<BugPathObservations> = {})
| 175 | }; |
| 176 | |
| 177 | function 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. */ |
| 199 | function noRecording(): BugPathObservations { |
no outgoing calls
no test coverage detected