()
| 956 | |
| 957 | #[tokio::test] |
| 958 | async fn test_task_builder_interactive_mode() { |
| 959 | let (test_repo, ctx) = create_test_context().await; |
| 960 | |
| 961 | let task = TaskBuilder::new() |
| 962 | .repo_root(test_repo.path().to_path_buf()) |
| 963 | .name("interactive-task".to_string()) |
| 964 | .prompt(Some("Test".to_string())) |
| 965 | .with_interactive(true) |
| 966 | .build(&ctx) |
| 967 | .await |
| 968 | .unwrap(); |
| 969 | |
| 970 | assert!(task.is_interactive); |
| 971 | |
| 972 | // Default should be non-interactive |
| 973 | let task2 = TaskBuilder::new() |
| 974 | .repo_root(test_repo.path().to_path_buf()) |
| 975 | .name("regular-task".to_string()) |
| 976 | .prompt(Some("Test".to_string())) |
| 977 | .build(&ctx) |
| 978 | .await |
| 979 | .unwrap(); |
| 980 | |
| 981 | assert!(!task2.is_interactive); |
| 982 | } |
| 983 | |
| 984 | #[tokio::test] |
| 985 | async fn test_task_builder_repository_copy() { |
nothing calls this directly
no test coverage detected