()
| 417 | |
| 418 | #[test] |
| 419 | fn validate_auth_refs_passes() { |
| 420 | let pred = parse_predicate("user_id = $auth.id AND $auth.roles CONTAINS 'admin'").unwrap(); |
| 421 | assert!(validate_auth_refs(&pred).is_ok()); |
| 422 | } |
| 423 | |
| 424 | #[test] |
| 425 | fn validate_auth_refs_rejects_unknown() { |
nothing calls this directly
no test coverage detected