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

Function test_include_workdir_false

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

Source from the content-addressed store, hash-verified

128 // 4. Workdir excluded when include_workdir: false.
129 #[test]
130 fn test_include_workdir_false() {
131 let yaml = r"
132version: 1
133filesystem_policy:
134 include_workdir: false
135 read_only:
136 - /usr
137";
138 let model = policy::parse_policy_str(yaml).expect("parse");
139 let readable = model.filesystem_policy.readable_paths();
140 assert!(!readable.contains(&"/sandbox".to_owned()));
141 }
142
143 // 5. No duplicate when workdir already in read_write.
144 #[test]

Callers

nothing calls this directly

Calls 2

parse_policy_strFunction · 0.85
readable_pathsMethod · 0.80

Tested by

no test coverage detected