(id string)
| 930 | } |
| 931 | |
| 932 | func stringTrimCostModel(id string) cost.OverloadModel { |
| 933 | return cost.MemberOverload(id, |
| 934 | stringTransformEvalCost(), |
| 935 | cost.ResultSize(cost.AtMost(cost.Target())), |
| 936 | ) |
| 937 | } |
| 938 | |
| 939 | // stringSubstringCostModel models s.substring(start): it drops at least start units of the |
| 940 | // receiver, and at most 4 times as many under the aggregate strategy (where each code point takes |
no test coverage detected