MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_confirmation_manager_with_yolo

Function test_confirmation_manager_with_yolo

core/src/hitl.rs:680–687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

678
679 #[tokio::test]
680 async fn test_confirmation_manager_with_yolo() {
681 let (event_tx, _) = broadcast::channel(100);
682 let policy = ConfirmationPolicy::enabled().with_yolo_lanes([SessionLane::Query]);
683 let manager = ConfirmationManager::new(policy, event_tx);
684
685 assert!(manager.requires_confirmation("bash").await); // Execute lane, not YOLO
686 assert!(!manager.requires_confirmation("read").await); // Query lane, YOLO
687 }
688
689 #[tokio::test]
690 async fn test_confirmation_manager_policy_update() {

Callers

nothing calls this directly

Calls 1

with_yolo_lanesMethod · 0.80

Tested by

no test coverage detected