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

Function test_filesystem_policy

crates/openshell-prover/src/lib.rs:105–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 // 2. Verify readable_paths.
104 #[test]
105 fn test_filesystem_policy() {
106 let path = testdata_dir().join("policy.yaml");
107 let model = parse_policy(&path).expect("failed to parse policy");
108 let readable = model.filesystem_policy.readable_paths();
109 assert!(readable.contains(&"/usr".to_owned()));
110 assert!(readable.contains(&"/sandbox".to_owned()));
111 assert!(readable.contains(&"/tmp".to_owned()));
112 }
113
114 // 3. Workdir NOT included by default (matches runtime behavior).
115 #[test]

Callers

nothing calls this directly

Calls 3

testdata_dirFunction · 0.85
parse_policyFunction · 0.85
readable_pathsMethod · 0.80

Tested by

no test coverage detected