()
| 588 | |
| 589 | #[test] |
| 590 | fn test_is_watchman_unavailable() { |
| 591 | assert!(AgentError::WatchmanNotRunning.is_watchman_unavailable()); |
| 592 | assert!(AgentError::WatchmanConnectionFailed { |
| 593 | reason: "refused".to_string() |
| 594 | } |
| 595 | .is_watchman_unavailable()); |
| 596 | |
| 597 | // Query failures are NOT "unavailable" — Watchman is running but query failed |
| 598 | assert!(!AgentError::WatchmanQueryFailed { |
| 599 | reason: "bad expr".to_string() |
| 600 | } |
| 601 | .is_watchman_unavailable()); |
| 602 | } |
| 603 | |
| 604 | #[test] |
| 605 | fn test_is_state_violation() { |
nothing calls this directly
no outgoing calls
no test coverage detected