(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode)
| 959 | } |
| 960 | |
| 961 | func estimateMathListCost(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode) *cost.CallEstimate { |
| 962 | if len(args) != 1 { |
| 963 | return nil |
| 964 | } |
| 965 | sz := cost.EstimateSize(estimator, args[0]) |
| 966 | c := sz.MultiplyByCostFactor(1.0).Add(cost.CallCostEstimate) |
| 967 | resultSize := cost.FixedSizeEstimate(1) |
| 968 | return cost.NewCallEstimate(c, &resultSize) |
| 969 | } |
| 970 | |
| 971 | func trackMathListCost(args []ref.Val, _ ref.Val) *uint64 { |
| 972 | sz := cost.ActualSize(args[0]) |
nothing calls this directly
no test coverage detected