(packet: FactPacket, rank: number)
| 434 | } |
| 435 | |
| 436 | function overviewDrafts(packet: FactPacket, rank: number): Draft[] { |
| 437 | const facts = packet.overview; |
| 438 | if (facts === undefined) { |
| 439 | return []; |
| 440 | } |
| 441 | const groups = facts.groups.map((group) => `${group.name} (${group.symbolCount})`); |
| 442 | return [{ |
| 443 | kind: 'overview', |
| 444 | lines: [ |
| 445 | `The project ${facts.projectName ?? ''} holds ${facts.totalSymbols} symbols and ` |
| 446 | + `${facts.totalRelations} relations across ${facts.fileCount} indexed files.`, |
| 447 | `Languages: ${listOf(facts.languages)}.`, |
| 448 | groups.length === 0 ? 'The index names no groups.' : `Groups: ${listOf(groups)}.`, |
| 449 | ], |
| 450 | rank, |
| 451 | }]; |
| 452 | } |
| 453 | |
| 454 | function compareDrafts(packet: FactPacket, rank: number): Draft[] { |
| 455 | const other = packet.compareWith; |
no test coverage detected