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

Function trackMathListCost

ext/math.go:971–975  ·  view source on GitHub ↗
(args []ref.Val, _ ref.Val)

Source from the content-addressed store, hash-verified

969}
970
971func trackMathListCost(args []ref.Val, _ ref.Val) *uint64 {
972 sz := cost.ActualSize(args[0])
973 total := cost.SafeAdd(sz, cost.CallCost)
974 return &total
975}
976
977func mathListCostModel(id string) cost.OverloadModel {
978 return cost.Overload(id,

Callers

nothing calls this directly

Calls 2

ActualSizeFunction · 0.92
SafeAddFunction · 0.92

Tested by

no test coverage detected