(s string)
| 482 | } |
| 483 | |
| 484 | func isGitHash(s string) bool { |
| 485 | if len(s) != 40 { |
| 486 | return false |
| 487 | } |
| 488 | for i := range s { |
| 489 | isDigit := s[i] >= '0' && s[i] <= '9' |
| 490 | isHexLetter := s[i] >= 'a' && s[i] <= 'f' |
| 491 | if !isDigit && !isHexLetter { |
| 492 | return false |
| 493 | } |
| 494 | } |
| 495 | return true |
| 496 | } |
| 497 | |
| 498 | func isArchive(path string) bool { |
| 499 | // As documented under the tarball type: |
no outgoing calls
no test coverage detected