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

Function forward_test_guard

crates/openshell-supervisor-network/src/proxy.rs:4649–4656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4647 }
4648
4649 fn forward_test_guard() -> PolicyGenerationGuard {
4650 let policy = include_str!("../data/sandbox-policy.rego");
4651 let policy_data = "network_policies: {}\n";
4652 let engine = OpaEngine::from_strings(policy, policy_data).unwrap();
4653 engine
4654 .generation_guard(engine.current_generation())
4655 .unwrap()
4656 }
4657
4658 async fn relay_forward_request_and_capture(
4659 method: &str,

Calls 2

generation_guardMethod · 0.80
current_generationMethod · 0.80

Tested by

no test coverage detected