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

Function networkContainsCIDRStringCostModel

ext/network.go:870–875  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

868}
869
870func networkContainsCIDRStringCostModel(id string) cost.OverloadModel {
871 return cost.MemberOverload(id,
872 cost.EvalCost(cost.Sum(networkCIDRCompareCost(), cost.StringScan(networkCIDRLength()), cost.Const(1), cost.StringScan(cost.Length(cost.Arg(0))))),
873 cost.BeforeVersion(1, cost.ManualCost(estimateNetworkContainsCIDRStringCost, trackNetworkContainsCIDRStringCost)),
874 )
875}

Callers 1

CompileOptionsMethod · 0.85

Calls 11

MemberOverloadFunction · 0.92
EvalCostFunction · 0.92
SumFunction · 0.92
StringScanFunction · 0.92
ConstFunction · 0.92
LengthFunction · 0.92
ArgFunction · 0.92
BeforeVersionFunction · 0.92
ManualCostFunction · 0.92
networkCIDRCompareCostFunction · 0.85
networkCIDRLengthFunction · 0.85

Tested by

no test coverage detected