(costFactor float64)
| 245 | } |
| 246 | |
| 247 | func trackSetsCost(costFactor float64) interpreter.FunctionTracker { |
| 248 | return func(args []ref.Val, _ ref.Val) *uint64 { |
| 249 | lhsSize := actualSize(args[0]) |
| 250 | rhsSize := actualSize(args[1]) |
| 251 | cost := safeAdd(callCost, uint64(float64(lhsSize*rhsSize)*costFactor)) |
| 252 | return &cost |
| 253 | } |
| 254 | } |
no test coverage detected