(props: {
kind: 'static' | 'observed';
chain: readonly BugPathNode[];
onHop: (hop: BugPathNode) => void;
})
| 148 | } |
| 149 | |
| 150 | function Chain(props: { |
| 151 | kind: 'static' | 'observed'; |
| 152 | chain: readonly BugPathNode[]; |
| 153 | onHop: (hop: BugPathNode) => void; |
| 154 | }): JSX.Element { |
| 155 | return ( |
| 156 | <ol |
| 157 | className="atlas-bugwizard-chain" |
| 158 | data-testid={`atlas-bugwizard-${props.kind}-chain`} |
| 159 | data-length={props.chain.length} |
| 160 | > |
| 161 | {props.chain.map((node, position) => ( |
| 162 | <Hop key={`${position}:${node.filePath ?? ''}:${node.name}`} node={node} onHop={props.onHop} /> |
| 163 | ))} |
| 164 | </ol> |
| 165 | ); |
| 166 | } |
| 167 | |
| 168 | /** Which of the three things the index said about one observed call. */ |
| 169 | function edgeVerdict(edge: BugPathEdge): string { |
nothing calls this directly
no outgoing calls
no test coverage detected