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

Function trackNetworkContainsIPIPCost

ext/network.go:757–761  ·  view source on GitHub ↗
(args []ref.Val, result ref.Val)

Source from the content-addressed store, hash-verified

755}
756
757func trackNetworkContainsIPIPCost(args []ref.Val, result ref.Val) *uint64 {
758 cidrSize := cost.ActualSize(args[0])
759 total := cost.SafeMultiplyByFactor(cost.SafeAdd(cidrSize, cidrSize), cost.StringCostFactor)
760 return &total
761}
762
763func trackNetworkContainsIPStringCost(args []ref.Val, result ref.Val) *uint64 {
764 cidrSize := cost.ActualSize(args[0])

Callers

nothing calls this directly

Calls 3

ActualSizeFunction · 0.92
SafeMultiplyByFactorFunction · 0.92
SafeAddFunction · 0.92

Tested by

no test coverage detected