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

Method ProgramOptions

ext/sets.go:129–137  ·  view source on GitHub ↗

ProgramOptions implements the Library interface method.

()

Source from the content-addressed store, hash-verified

127
128// ProgramOptions implements the Library interface method.
129func (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

Callers

nothing calls this directly

Calls 3

CostTrackerOptionsFunction · 0.92
OverloadCostTrackerFunction · 0.92
trackSetsCostFunction · 0.85

Tested by

no test coverage detected