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

Function trackCostCreateMap

interpreter/interpretable.go:2197–2201  ·  view source on GitHub ↗
(frame *ExecutionFrame, id int64, res ref.Val)

Source from the content-addressed store, hash-verified

2195}
2196
2197func trackCostCreateMap(frame *ExecutionFrame, id int64, res ref.Val) {
2198 if costs := frame.CostTracker(); costs != nil {
2199 costs.CreateMap(id, res)
2200 }
2201}
2202
2203func trackCostCreateStruct(frame *ExecutionFrame, id int64, res ref.Val) {
2204 if costs := frame.CostTracker(); costs != nil {

Callers 1

ExecMethod · 0.85

Calls 2

CostTrackerMethod · 0.80
CreateMapMethod · 0.80

Tested by

no test coverage detected