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

Function lint_always_true

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

Source from the content-addressed store, hash-verified

198
199 #[test]
200 fn lint_always_true() {
201 let warnings = lint_predicate(&RlsPredicate::AlwaysTrue);
202 assert_eq!(warnings.len(), 1);
203 assert!(warnings[0].contains("tautology"));
204 }
205
206 #[test]
207 fn lint_static_predicate() {

Callers

nothing calls this directly

Calls 1

lint_predicateFunction · 0.85

Tested by

no test coverage detected