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

Function trackEvalPasses

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

Source from the content-addressed store, hash-verified

1144}
1145
1146func trackEvalPasses(count *atomic.Int32) func(int64) cel.ProgramOption {
1147 return func(rootID int64) cel.ProgramOption {
1148 return cel.CustomDecoratorV2(func(in interpreter.InterpretableV2) (interpreter.InterpretableV2, error) {
1149 if in.ID() == rootID {
1150 return &passCountingInterpretable{InterpretableV2: in, count: count}, nil
1151 }
1152 return in, nil
1153 })
1154 }
1155}

Callers 1

Calls 2

CustomDecoratorV2Function · 0.92
IDMethod · 0.65

Tested by

no test coverage detected