(locations []string)
| 103 | var DefaultKernelFeatures, _ = NewKernelFeatures() |
| 104 | |
| 105 | func findKernelConfigs(locations []string) string { |
| 106 | for _, loc := range locations { |
| 107 | if fileExists(loc) { |
| 108 | return loc |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | return "" |
| 113 | } |
| 114 | |
| 115 | func fileExists(filePath string) bool { |
| 116 | fileInfo, err := os.Stat(filePath) |
no test coverage detected