( position: SourceFileLocation['position'], )
| 129 | } |
| 130 | |
| 131 | export function formatSourceLine( |
| 132 | position: SourceFileLocation['position'], |
| 133 | ): string { |
| 134 | if (!position) { |
| 135 | return ''; |
| 136 | } |
| 137 | const { startLine, endLine } = position; |
| 138 | return endLine && startLine !== endLine |
| 139 | ? `${startLine}-${endLine}` |
| 140 | : `${startLine}`; |
| 141 | } |
| 142 | |
| 143 | export function formatGitHubLink( |
| 144 | file: string, |
no outgoing calls
no test coverage detected