MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_is_watchman_unavailable

Function test_is_watchman_unavailable

atomic-agent/src/error.rs:590–602  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected