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

Function parse_parenthesized

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

Source from the content-addressed store, hash-verified

392
393 #[test]
394 fn parse_parenthesized() {
395 let pred =
396 parse_predicate("(user_id = $auth.id OR shared = true) AND status = 'active'").unwrap();
397 assert!(matches!(pred, RlsPredicate::And(_)));
398 }
399
400 #[test]
401 fn parse_contains() {

Callers

nothing calls this directly

Calls 1

parse_predicateFunction · 0.85

Tested by

no test coverage detected