()
| 571 | |
| 572 | #[test] |
| 573 | fn test_pending_count() { |
| 574 | let mut plan = ExecutionPlan::new("Test", Complexity::Simple); |
| 575 | plan.add_step(Task::new("s1", "Step 1")); |
| 576 | plan.add_step(Task::new("s2", "Step 2")); |
| 577 | plan.add_step(Task::new("s3", "Step 3")); |
| 578 | |
| 579 | assert_eq!(plan.pending_count(), 3); |
| 580 | plan.mark_status("s1", TaskStatus::Completed); |
| 581 | assert_eq!(plan.pending_count(), 2); |
| 582 | plan.mark_status("s2", TaskStatus::Failed); |
| 583 | assert_eq!(plan.pending_count(), 1); |
| 584 | plan.mark_status("s3", TaskStatus::InProgress); |
| 585 | assert_eq!(plan.pending_count(), 0); |
| 586 | } |
| 587 | |
| 588 | #[test] |
| 589 | fn test_has_deadlock() { |
nothing calls this directly
no test coverage detected