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