()
| 603 | |
| 604 | #[test] |
| 605 | fn test_is_state_violation() { |
| 606 | assert!(AgentError::TurnNotActive { |
| 607 | session_id: "s".to_string() |
| 608 | } |
| 609 | .is_state_violation()); |
| 610 | assert!(AgentError::TurnAlreadyActive { |
| 611 | session_id: "s".to_string() |
| 612 | } |
| 613 | .is_state_violation()); |
| 614 | assert!(AgentError::SessionEnded { |
| 615 | session_id: "s".to_string(), |
| 616 | operation: "record".to_string(), |
| 617 | } |
| 618 | .is_state_violation()); |
| 619 | |
| 620 | assert!(!AgentError::WatchmanNotRunning.is_state_violation()); |
| 621 | } |
| 622 | |
| 623 | // Suggestion tests |
| 624 |
nothing calls this directly
no outgoing calls
no test coverage detected