(count *atomic.Int32)
| 1144 | } |
| 1145 | |
| 1146 | func 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 | } |
no test coverage detected