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

Function parse_and_or

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

Source from the content-addressed store, hash-verified

384
385 #[test]
386 fn parse_and_or() {
387 let pred =
388 parse_predicate("user_id = $auth.id AND status = 'active' OR visibility = 'public'")
389 .unwrap();
390 assert!(matches!(pred, RlsPredicate::Or(_)));
391 }
392
393 #[test]
394 fn parse_parenthesized() {

Callers

nothing calls this directly

Calls 1

parse_predicateFunction · 0.85

Tested by

no test coverage detected