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

Function test_confirmation_not_found

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

Source from the content-addressed store, hash-verified

805
806 #[tokio::test]
807 async fn test_confirmation_not_found() {
808 let (event_tx, _) = broadcast::channel(100);
809 let manager = ConfirmationManager::new(ConfirmationPolicy::enabled(), event_tx);
810
811 // Try to confirm non-existent confirmation
812 let result = manager.confirm("non-existent", true, None).await;
813 assert!(result.is_ok());
814 assert!(!result.unwrap()); // Returns false for not found
815 }
816
817 // ========================================================================
818 // Multiple Confirmations Tests

Callers

nothing calls this directly

Calls 1

confirmMethod · 0.45

Tested by

no test coverage detected