Skip to content

test(tools): add direct delegation test for DynExecutor::requires_confirmation #3650

@bug-ops

Description

@bug-ops

Description

DynExecutor::requires_confirmation was added in PR #3649 (fix for #3646) but has no dedicated delegation unit test. All other DynExecutor delegation methods have direct tests; this gap should be closed for consistency.

Expected Behavior

A unit test verifying that DynExecutor::requires_confirmation correctly delegates to the inner ErasedToolExecutor, analogous to tests for is_tool_retryable and is_tool_speculatable.

Recommended Fix

Add to the test suite in crates/zeph-tools/src/executor.rs:

#[test]
fn dyn_executor_requires_confirmation_delegates() {
    // Create an ErasedToolExecutor impl that returns true for requires_confirmation_erased
    // Wrap it in DynExecutor
    // Assert that dyn_executor.requires_confirmation(&dummy_call()) == true
}

Environment

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexitybugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions