ProgramOptions returns program options for HMAC extensions.
()
| 264 | |
| 265 | // ProgramOptions returns program options for HMAC extensions. |
| 266 | func (l *hmacLib) ProgramOptions() []cel.ProgramOption { |
| 267 | trackers := make([]cost.TrackerOption, 0, len(unboundedCostOverloads)) |
| 268 | for _, overloadID := range unboundedCostOverloads { |
| 269 | trackers = append(trackers, cost.OverloadTracker(overloadID, trackUnboundedCost)) |
| 270 | } |
| 271 | return []cel.ProgramOption{cel.CostTrackerOptions(trackers...)} |
| 272 | } |
| 273 | |
| 274 | // unboundedCostOverloads are the overload identifiers reported as having an |
| 275 | // unbounded estimated and actual cost. |
nothing calls this directly
no test coverage detected