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

Function parse_mfa_condition

nodedb/src/control/security/conditional.rs:330–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329 #[test]
330 fn parse_mfa_condition() {
331 let parts = vec!["REQUIRE", "MFA"];
332 let conditions = parse_conditions(&parts);
333 assert_eq!(conditions.len(), 1);
334 assert!(matches!(conditions[0], GrantCondition::RequireMfa));
335 }
336}

Callers

nothing calls this directly

Calls 1

parse_conditionsFunction · 0.85

Tested by

no test coverage detected