MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_minimal_policy_yaml

Function parse_minimal_policy_yaml

crates/openshell-policy/src/lib.rs:1491–1497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1489
1490 #[test]
1491 fn parse_minimal_policy_yaml() {
1492 let yaml = "version: 1\n";
1493 let policy = parse_sandbox_policy(yaml).expect("should parse");
1494 assert_eq!(policy.version, 1);
1495 assert!(policy.network_policies.is_empty());
1496 assert!(policy.filesystem.is_none());
1497 }
1498
1499 #[test]
1500 fn parse_policy_with_network_rules() {

Callers

nothing calls this directly

Calls 1

parse_sandbox_policyFunction · 0.85

Tested by

no test coverage detected