()
| 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() { |
nothing calls this directly
no test coverage detected