MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / isLevelSupported

Function isLevelSupported

internal/thinking/validate.go:312–319  ·  view source on GitHub ↗
(level string, supported []string)

Source from the content-addressed store, hash-verified

310}
311
312func 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
321func levelIndex(level string) int {
322 for i, l := range standardLevelOrder {

Callers 2

ValidateConfigFunction · 0.85
clampLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected