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

Function test_exit_code_recording_errors

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

Source from the content-addressed store, hash-verified

686
687 #[test]
688 fn test_exit_code_recording_errors() {
689 assert_eq!(
690 AgentError::RecordFailed {
691 session_id: "s".to_string(),
692 turn_number: 1,
693 reason: "x".to_string(),
694 }
695 .exit_code(),
696 4
697 );
698 assert_eq!(
699 AgentError::ViewError {
700 operation: "create".to_string(),
701 view_name: "s".to_string(),
702 reason: "x".to_string(),
703 }
704 .exit_code(),
705 4
706 );
707 }
708
709 // Conversion tests
710

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected