(args ...vector.Any)
| 16 | } |
| 17 | |
| 18 | func (c *CIDRMatch) Call(args ...vector.Any) vector.Any { |
| 19 | if vec, ok := expr.CheckForNullThenError(args); ok { |
| 20 | return vec |
| 21 | } |
| 22 | if args[0].Type().ID() != super.IDNet { |
| 23 | return vector.NewWrappedError(c.sctx, "cidr_match: not a net", args[0]) |
| 24 | } |
| 25 | return c.pw.Eval(args...) |
| 26 | } |
| 27 | |
| 28 | func cidrMatch(vec ...vector.Any) vector.Any { |
| 29 | netVec, valVec := vec[0], vec[1] |
nothing calls this directly
no test coverage detected