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

Function networkContainsIPStringCostModel

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

Source from the content-addressed store, hash-verified

854}
855
856func networkContainsIPStringCostModel(id string) cost.OverloadModel {
857 return cost.MemberOverload(id,
858 cost.EvalCost(cost.Sum(networkCIDRCompareCost(), cost.StringScan(cost.Length(cost.Arg(0))))),
859 cost.BeforeVersion(1, cost.ManualCost(estimateNetworkContainsIPStringCost, trackNetworkContainsIPStringCost)),
860 )
861}
862
863func networkContainsCIDRCIDRCostModel(id string) cost.OverloadModel {
864 return cost.MemberOverload(id,

Callers 1

CompileOptionsMethod · 0.85

Calls 9

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

Tested by

no test coverage detected