(u string)
| 10 | } |
| 11 | |
| 12 | func isSupportedProtocol(u string) bool { |
| 13 | return strings.HasPrefix(u, "ssh:") || |
| 14 | strings.HasPrefix(u, "git+ssh:") || |
| 15 | strings.HasPrefix(u, "git:") || |
| 16 | strings.HasPrefix(u, "http:") || |
| 17 | strings.HasPrefix(u, "git+https:") || |
| 18 | strings.HasPrefix(u, "https:") |
| 19 | } |
| 20 | |
| 21 | func isPossibleProtocol(u string) bool { |
| 22 | return isSupportedProtocol(u) || |
no outgoing calls
no test coverage detected