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

Function checkCIDR

ext/network.go:680–684  ·  view source on GitHub ↗
(e *cel.Env, call, arg ast.Expr)

Source from the content-addressed store, hash-verified

678}
679
680func checkCIDR(e *cel.Env, call, arg ast.Expr) error {
681 pattern := arg.AsLiteral().Value().(string)
682 _, err := parseCIDR(pattern)
683 return err
684}
685
686// Cost estimation functions for network extensions.
687

Callers

nothing calls this directly

Calls 3

parseCIDRFunction · 0.85
ValueMethod · 0.65
AsLiteralMethod · 0.65

Tested by

no test coverage detected