MCPcopy Create free account
hub / github.com/cel-expr/cel-go / testIDGen

Function testIDGen

common/ast/expr_test.go:506–516  ·  view source on GitHub ↗
(seed int64)

Source from the content-addressed store, hash-verified

504}
505
506func testIDGen(seed int64) ast.IDGenerator {
507 seen := map[int64]int64{}
508 return func(originalID int64) int64 {
509 if id, found := seen[originalID]; found {
510 return id
511 }
512 seed++
513 seen[originalID] = seed
514 return seed
515 }
516}

Callers 11

TestCallFunction · 0.85
TestMemberCallFunction · 0.85
TestCallNilFunction · 0.85
TestComprehensionFunction · 0.85
TestComprehensionNilFunction · 0.85
TestIdentFunction · 0.85
TestListFunction · 0.85
TestMapFunction · 0.85
TestSelectFunction · 0.85
TestStructFunction · 0.85
TestRenumberIDsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected