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

Function test_confirmation_policy_with_timeout

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

Source from the content-addressed store, hash-verified

648
649 #[test]
650 fn test_confirmation_policy_with_timeout() {
651 let policy = ConfirmationPolicy::enabled().with_timeout(5000, TimeoutAction::AutoApprove);
652
653 assert_eq!(policy.default_timeout_ms, 5000);
654 assert_eq!(policy.timeout_action, TimeoutAction::AutoApprove);
655 }
656
657 // ========================================================================
658 // ConfirmationManager Basic Tests

Callers

nothing calls this directly

Calls 1

with_timeoutMethod · 0.45

Tested by

no test coverage detected