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

Function predicateNode

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

Source from the content-addressed store, hash-verified

293}
294
295func predicateNode(depth int) string {
296 var args []string
297 for i := 0; i < oneOf(list[int]{
298 {1, 100},
299 {2, 50},
300 {3, 50},
301 }); i++ {
302 args = append(args, node(depth-1))
303 }
304 return fmt.Sprintf("%v(%v)", random(predicates), strings.Join(args, ", "))
305}
306
307func pointerNode(_ int) string {
308 return oneOf(list[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…