MCPcopy Index your code
hub / github.com/expr-lang/expr / builtinNode

Function builtinNode

test/gen/gen.go:282–293  ·  view source on GitHub ↗
(depth int)

Source from the content-addressed store, hash-verified

280}
281
282func builtinNode(depth int) string {
283 var args []string
284 for i := 0; i < oneOf(list[int]{
285 {1, 100},
286 {2, 50},
287 {3, 50},
288 {4, 10},
289 }); i++ {
290 args = append(args, node(depth-1))
291 }
292 return fmt.Sprintf("%v(%v)", random(builtins), strings.Join(args, ", "))
293}
294
295func predicateNode(depth int) string {
296 var args []string

Callers

nothing calls this directly

Calls 4

oneOfFunction · 0.85
nodeFunction · 0.85
randomFunction · 0.85
SprintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…