(level string, supported []string)
| 310 | } |
| 311 | |
| 312 | func isLevelSupported(level string, supported []string) bool { |
| 313 | for _, s := range supported { |
| 314 | if strings.EqualFold(level, strings.TrimSpace(s)) { |
| 315 | return true |
| 316 | } |
| 317 | } |
| 318 | return false |
| 319 | } |
| 320 | |
| 321 | func levelIndex(level string) int { |
| 322 | for i, l := range standardLevelOrder { |
no outgoing calls
no test coverage detected