MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_contains

Function parse_contains

nodedb/src/control/security/predicate.rs:401–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399
400 #[test]
401 fn parse_contains() {
402 let pred = parse_predicate("$auth.roles CONTAINS 'admin'").unwrap();
403 assert!(matches!(pred, RlsPredicate::Contains { .. }));
404 }
405
406 #[test]
407 fn parse_intersects() {

Callers

nothing calls this directly

Calls 1

parse_predicateFunction · 0.85

Tested by

no test coverage detected