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

Function test_task_builder_basic

src/task_builder.rs:733–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

731
732 #[tokio::test]
733 async fn test_task_builder_basic() {
734 let task = create_basic_task("test-task", "Test description").await;
735
736 assert_eq!(task.name, "test-task");
737 assert_eq!(task.task_type, "generic");
738 assert!(!task.instructions_file.is_empty());
739 assert_eq!(task.id.len(), 8);
740 assert!(
741 task.id
742 .chars()
743 .all(|c| c.is_ascii_alphanumeric() || c == '_'),
744 "Task ID should only contain [A-Za-z0-9_], got: {}",
745 task.id
746 );
747 }
748
749 #[tokio::test]
750 async fn test_task_builder_with_custom_properties() {

Callers

nothing calls this directly

Calls 1

create_basic_taskFunction · 0.85

Tested by

no test coverage detected