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

Function test_exit_code_user_errors

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

Source from the content-addressed store, hash-verified

655
656 #[test]
657 fn test_exit_code_user_errors() {
658 assert_eq!(
659 AgentError::NotARepository {
660 path: PathBuf::from("/tmp")
661 }
662 .exit_code(),
663 1
664 );
665 assert_eq!(
666 AgentError::AgentNotFound {
667 name: "x".to_string(),
668 available: "y".to_string()
669 }
670 .exit_code(),
671 1
672 );
673 }
674
675 #[test]
676 fn test_exit_code_non_fatal() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected