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

Function lint_auth_ref_clean

nodedb/src/control/security/explain.rs:219–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217
218 #[test]
219 fn lint_auth_ref_clean() {
220 let pred = RlsPredicate::Compare {
221 field: "user_id".into(),
222 op: CompareOp::Eq,
223 value: PredicateValue::AuthRef("id".into()),
224 };
225 let warnings = lint_predicate(&pred);
226 assert!(warnings.is_empty());
227 }
228}

Callers

nothing calls this directly

Calls 1

lint_predicateFunction · 0.85

Tested by

no test coverage detected