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

Function test_include_workdir_default

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

Source from the content-addressed store, hash-verified

114 // 3. Workdir NOT included by default (matches runtime behavior).
115 #[test]
116 fn test_include_workdir_default() {
117 let yaml = r"
118version: 1
119filesystem_policy:
120 read_only:
121 - /usr
122";
123 let model = policy::parse_policy_str(yaml).expect("parse");
124 let readable = model.filesystem_policy.readable_paths();
125 assert!(!readable.contains(&"/sandbox".to_owned()));
126 }
127
128 // 4. Workdir excluded when include_workdir: false.
129 #[test]

Callers

nothing calls this directly

Calls 2

parse_policy_strFunction · 0.85
readable_pathsMethod · 0.80

Tested by

no test coverage detected