()
| 93 | const answer = (prompt: string, context = jsonbAggEvidence()) => relationshipAnswer(prompt, [context])!.markdown; |
| 94 | // Two callers of JSONBAgg with CALLS only, and three calls from it. |
| 95 | const calling = () => jsonbAggEvidence({ edges: [{ source: 100, target: 32360, type: 'CALLS' }, { source: 101, target: 32360, type: 'CALLS' }, |
| 96 | { source: 32360, target: 7, type: 'CALLS' }, { source: 32360, target: 8, type: 'CALLS' }, { source: 32360, target: 9, type: 'CALLS' }, { source: 32360, target: 7, type: 'INHERITS' }] }); |
| 97 | |
| 98 | it('counts the callers it lists and gives all incoming relationships as a sentence of their own', () => { |
| 99 | expect(answer('Who calls JSONBAgg?').split('\n')[0]).toBe('11 callers (CALLS) of `JSONBAgg` in the loaded graph. All incoming: 23 relationships from 12 symbols.'); |
no test coverage detected