()
| 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() { |
nothing calls this directly
no test coverage detected