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

Function networkNominalCostModel

ext/network.go:830–835  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

828}
829
830func networkNominalCostModel(id string) cost.OverloadModel {
831 return cost.MemberOverload(id,
832 cost.EvalCost(cost.Const(cost.CallCost)),
833 cost.BeforeVersion(1, cost.ManualCost(estimateNetworkNominalCost, trackNetworkNominalCost)),
834 )
835}
836
837// networkCIDRLength returns the bounded length of a CIDR receiver (at most 16 bytes), which bounds
838// the estimate for a receiver of unknown size without changing the runtime charge.

Callers 1

CompileOptionsMethod · 0.85

Calls 5

MemberOverloadFunction · 0.92
EvalCostFunction · 0.92
ConstFunction · 0.92
BeforeVersionFunction · 0.92
ManualCostFunction · 0.92

Tested by

no test coverage detected