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

Method ProgramOptions

ext/sets.go:130–138  ·  view source on GitHub ↗

ProgramOptions implements the Library interface method.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

CostTrackerOptionsFunction · 0.92
OverloadCostTrackerFunction · 0.92
trackSetsCostFunction · 0.85

Tested by

no test coverage detected