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

Function checkCIDR

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

Source from the content-addressed store, hash-verified

652}
653
654func checkCIDR(e *cel.Env, call, arg ast.Expr) error {
655 pattern := arg.AsLiteral().Value().(string)
656 _, err := parseCIDR(pattern)
657 return err
658}
659
660// Cost estimation functions for network extensions.
661

Callers

nothing calls this directly

Calls 3

parseCIDRFunction · 0.85
ValueMethod · 0.65
AsLiteralMethod · 0.65

Tested by

no test coverage detected