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

Function trackEvalPasses

cel/program_async_test.go:989–998  ·  view source on GitHub ↗
(count *atomic.Int32)

Source from the content-addressed store, hash-verified

987}
988
989func trackEvalPasses(count *atomic.Int32) func(int64) cel.ProgramOption {
990 return func(rootID int64) cel.ProgramOption {
991 return cel.CustomDecoratorV2(func(in interpreter.InterpretableV2) (interpreter.InterpretableV2, error) {
992 if in.ID() == rootID {
993 return &passCountingInterpretable{InterpretableV2: in, count: count}, nil
994 }
995 return in, nil
996 })
997 }
998}

Callers 1

Calls 2

CustomDecoratorV2Function · 0.92
IDMethod · 0.65

Tested by

no test coverage detected