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

Function binary_requires_add_endpoint

crates/openshell-cli/src/policy_update.rs:806–811  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

804
805 #[test]
806 fn binary_requires_add_endpoint() {
807 let error =
808 build_policy_update_plan(&[], &[], &[], &[], &[], &["/usr/bin/gh".to_string()], None)
809 .expect_err("plan should fail");
810 assert!(error.to_string().contains("--binary"));
811 }
812
813 #[test]
814 fn rule_name_rejects_multiple_add_endpoints() {

Callers

nothing calls this directly

Calls 1

build_policy_update_planFunction · 0.85

Tested by

no test coverage detected