(source: string)
| 97 | |
| 98 | // Minimal inline copy of parseSourceUrl since it's module-private |
| 99 | function parseSourceUrlExt(source: string): { url: string; branch?: string } { |
| 100 | const idx = source.lastIndexOf('@'); |
| 101 | if (idx === -1) return { url: source }; |
| 102 | const url = source.slice(0, idx); |
| 103 | const branch = source.slice(idx + 1); |
| 104 | if (!branch) return { url }; |
| 105 | return { url, branch }; |
| 106 | } |
| 107 | |
| 108 | test('parseSourceUrl handles various URL patterns', () => { |
| 109 | // No @ — returns URL unchanged |
no outgoing calls
no test coverage detected