isValidFuncName checks if fn passed is valid keyword.
(f string)
| 2749 | |
| 2750 | // isValidFuncName checks if fn passed is valid keyword. |
| 2751 | func isValidFuncName(f string) bool { |
| 2752 | switch f { |
| 2753 | case "anyofterms", "allofterms", "val", "regexp", "anyoftext", "alloftext", "ngram", |
| 2754 | "has", "uid", "uid_in", "anyof", "allof", "type", "match", "similar_to": |
| 2755 | return true |
| 2756 | } |
| 2757 | return isInequalityFn(f) || types.IsGeoFunc(f) |
| 2758 | } |
| 2759 | |
| 2760 | func isInequalityFn(f string) bool { |
| 2761 | switch f { |
no test coverage detected
searching dependent graphs…