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

Function test_is_state_violation

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected