ProgramOptions implements the Library interface method.
()
| 127 | |
| 128 | // ProgramOptions implements the Library interface method. |
| 129 | func (setsLib) ProgramOptions() []cel.ProgramOption { |
| 130 | return []cel.ProgramOption{ |
| 131 | cel.CostTrackerOptions( |
| 132 | interpreter.OverloadCostTracker("list_sets_contains_list", trackSetsCost(1)), |
| 133 | interpreter.OverloadCostTracker("list_sets_intersects_list", trackSetsCost(1)), |
| 134 | interpreter.OverloadCostTracker("list_sets_equivalent_list", trackSetsCost(2)), |
| 135 | ), |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // NewSetMembershipOptimizer rewrites set membership tests using the `in` operator against a list |
| 140 | // of constant values of enum, int, uint, string, or boolean type into a set membership test against |
nothing calls this directly
no test coverage detected