(jsonPath string)
| 381 | } |
| 382 | |
| 383 | func findBestKnownFieldParentPath(jsonPath string) string { |
| 384 | bestPath := "" |
| 385 | bestLen := 0 |
| 386 | for path := range knownFieldValidValues { |
| 387 | if strings.HasPrefix(jsonPath, path+"/") { |
| 388 | if l := len(path); l > bestLen { |
| 389 | bestLen = l |
| 390 | bestPath = path |
| 391 | } |
| 392 | } |
| 393 | } |
| 394 | return bestPath |
| 395 | } |
| 396 | |
| 397 | func appendKnownFieldSuggestions(result, message string, scopes []string) string { |
| 398 | if len(scopes) == 0 { |
no outgoing calls
no test coverage detected