(count *atomic.Int32)
| 987 | } |
| 988 | |
| 989 | func 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 | } |
no test coverage detected