Invalid Go file
(name string)
| 53 | |
| 54 | // Invalid Go file |
| 55 | func invalidGoFile(name string) bool { |
| 56 | return len(name) == 0 || // Empty string |
| 57 | path.Ext(name) != ".go" || |
| 58 | name[0] == '_' || // Starts with _ |
| 59 | name[0] == '.' || // Starts with . |
| 60 | name == "bud.go" || // Named bud (reserved) |
| 61 | strings.HasSuffix(name, "_test") // Test file |
| 62 | } |
| 63 | |
| 64 | // Invalid public file |
| 65 | func invalidPublicFile(name string) bool { |
no test coverage detected