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

Function estimateNetworkContainsIPIPCost

ext/network.go:701–705  ·  view source on GitHub ↗
(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode)

Source from the content-addressed store, hash-verified

699}
700
701func estimateNetworkContainsIPIPCost(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode) *cost.CallEstimate {
702 sz := cost.RangedSizeEstimate(4, 16)
703 ipCompCost := sz.Add(sz).MultiplyByCostFactor(cost.StringCostFactor)
704 return cost.NewCallEstimate(ipCompCost, nil)
705}
706
707func estimateNetworkContainsIPStringCost(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode) *cost.CallEstimate {
708 if len(args) < 1 {

Callers

nothing calls this directly

Calls 4

RangedSizeEstimateFunction · 0.92
NewCallEstimateFunction · 0.92
AddMethod · 0.65
MultiplyByCostFactorMethod · 0.45

Tested by

no test coverage detected