(args []ref.Val, result ref.Val)
| 761 | } |
| 762 | |
| 763 | func trackNetworkContainsIPStringCost(args []ref.Val, result ref.Val) *uint64 { |
| 764 | cidrSize := cost.ActualSize(args[0]) |
| 765 | otherSize := cost.ActualSize(args[1]) |
| 766 | total := cost.SafeMultiplyByFactor(cost.SafeAdd(cidrSize, cidrSize), cost.StringCostFactor) |
| 767 | total = cost.SafeAdd(total, cost.SafeMultiplyByFactor(otherSize, cost.StringCostFactor)) |
| 768 | return &total |
| 769 | } |
| 770 | |
| 771 | func trackNetworkContainsCIDRCIDRCost(args []ref.Val, result ref.Val) *uint64 { |
| 772 | cidrSize := cost.ActualSize(args[0]) |
nothing calls this directly
no test coverage detected