()
| 2640 | |
| 2641 | #[tokio::test(flavor = "multi_thread")] |
| 2642 | async fn test_session_options_builders() { |
| 2643 | let opts = SessionOptions::new() |
| 2644 | .with_session_id("test-id") |
| 2645 | .with_auto_save(true) |
| 2646 | .with_max_parallel_tasks(3) |
| 2647 | .with_auto_delegation_enabled(true) |
| 2648 | .with_manual_delegation_enabled(false) |
| 2649 | .with_auto_parallel_delegation(false) |
| 2650 | .with_active_skill_tool_restrictions(true); |
| 2651 | assert_eq!(opts.session_id, Some("test-id".to_string())); |
| 2652 | assert!(opts.auto_save); |
| 2653 | assert_eq!(opts.max_parallel_tasks, Some(3)); |
| 2654 | assert_eq!(opts.manual_delegation_enabled, Some(false)); |
| 2655 | assert_eq!(opts.auto_parallel_delegation, Some(false)); |
| 2656 | assert_eq!(opts.enforce_active_skill_tool_restrictions, Some(true)); |
| 2657 | let auto = opts.auto_delegation.expect("auto delegation config"); |
| 2658 | assert!(auto.enabled); |
| 2659 | assert!(!auto.allow_manual_delegation); |
| 2660 | assert!(!auto.auto_parallel); |
| 2661 | } |
| 2662 | |
| 2663 | #[tokio::test(flavor = "multi_thread")] |
| 2664 | async fn test_active_skill_tool_restriction_option_defaults_and_overrides() { |
nothing calls this directly
no test coverage detected