()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected