(somePathOrFileName string)
| 32 | } |
| 33 | |
| 34 | func IsSystemHeaderPath(somePathOrFileName string) bool { |
| 35 | return strings.HasPrefix(somePathOrFileName, "/usr/local/") || |
| 36 | strings.HasPrefix(somePathOrFileName, "/usr/src/") || |
| 37 | strings.HasPrefix(somePathOrFileName, "/Library/") |
| 38 | } |
| 39 | |
| 40 | func (sHeaders *SystemHeadersCache) IsSystemHeader(headerPath string, fileSize int64, fileSHA256 common.SHA256) bool { |
| 41 | sHeaders.mu.RLock() |
no outgoing calls
no test coverage detected