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

Function checkCIDR

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

Source from the content-addressed store, hash-verified

613}
614
615func checkCIDR(e *cel.Env, call, arg ast.Expr) error {
616 pattern := arg.AsLiteral().Value().(string)
617 _, err := parseCIDR(pattern)
618 return err
619}

Callers

nothing calls this directly

Calls 3

parseCIDRFunction · 0.85
ValueMethod · 0.65
AsLiteralMethod · 0.65

Tested by

no test coverage detected