MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / langForFunc

Function langForFunc

worker/task.go:1864–1870  ·  view source on GitHub ↗

We allow atmost one lang in functions. We can inline in 1.9.

(langs []string)

Source from the content-addressed store, hash-verified

1862
1863// We allow atmost one lang in functions. We can inline in 1.9.
1864func langForFunc(langs []string) string {
1865 x.AssertTrue(len(langs) <= 1)
1866 if len(langs) == 0 {
1867 return ""
1868 }
1869 return langs[0]
1870}
1871
1872func checkUidZero(uids []uint64) bool {
1873 for _, uid := range uids {

Callers 9

handleUidPostingsMethod · 0.85
needsStringFilteringFunction · 0.85
handleRegexFunctionMethod · 0.85
handleCompareFunctionMethod · 0.85
handleMatchFunctionMethod · 0.85
filterStringFunctionMethod · 0.85
parseSrcFnFunction · 0.85
handleHasFunctionMethod · 0.85

Calls 1

AssertTrueFunction · 0.92

Tested by

no test coverage detected