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

Function policy_violation_display

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

Source from the content-addressed store, hash-verified

2060
2061 #[test]
2062 fn policy_violation_display() {
2063 let v = PolicyViolation::InvalidProcessIdentity {
2064 field: "run_as_user",
2065 value: "root".into(),
2066 };
2067 let s = format!("{v}");
2068 assert!(s.contains("root"));
2069 assert!(s.contains("run_as_user"));
2070 assert!(s.contains("sandbox"));
2071 }
2072
2073 // ---- is_valid_sandbox_identity tests ----
2074

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected