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

Function test_cancel_nonexistent

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

Source from the content-addressed store, hash-verified

907
908 #[tokio::test]
909 async fn test_cancel_nonexistent() {
910 let (event_tx, _) = broadcast::channel(100);
911 let manager = ConfirmationManager::new(ConfirmationPolicy::enabled(), event_tx);
912
913 let cancelled = manager.cancel("non-existent").await;
914 assert!(!cancelled);
915 }
916
917 #[tokio::test]
918 async fn test_cancel_all() {

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected