(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode)
| 705 | } |
| 706 | |
| 707 | func estimateNetworkContainsIPStringCost(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode) *cost.CallEstimate { |
| 708 | if len(args) < 1 { |
| 709 | return nil |
| 710 | } |
| 711 | sz := cost.RangedSizeEstimate(4, 16) |
| 712 | ipCompCost := sz.Add(sz).MultiplyByCostFactor(cost.StringCostFactor) |
| 713 | argSz := cost.EstimateSize(estimator, args[0]) |
| 714 | ipCompCost = ipCompCost.Add(argSz.MultiplyByCostFactor(cost.StringCostFactor)) |
| 715 | return cost.NewCallEstimate(ipCompCost, nil) |
| 716 | } |
| 717 | |
| 718 | func estimateNetworkContainsCIDRCIDRCost(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode) *cost.CallEstimate { |
| 719 | sz := cost.RangedSizeEstimate(4, 16) |
nothing calls this directly
no test coverage detected