MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / test_task_builder_interactive_mode

Function test_task_builder_interactive_mode

src/task_builder.rs:958–982  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 7

promptMethod · 0.80
repo_rootMethod · 0.80
pathMethod · 0.80
create_test_contextFunction · 0.70
buildMethod · 0.45
with_interactiveMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected