()
| 903 | |
| 904 | #[test] |
| 905 | fn test_is_remote_error() { |
| 906 | assert!(CliError::remote_error("failed", None).is_remote_error()); |
| 907 | assert!(CliError::RemoteNotFound { |
| 908 | name: "origin".into() |
| 909 | } |
| 910 | .is_remote_error()); |
| 911 | assert!(CliError::AuthenticationFailed { |
| 912 | remote: "origin".into() |
| 913 | } |
| 914 | .is_remote_error()); |
| 915 | |
| 916 | assert!(!CliError::NothingToRecord.is_remote_error()); |
| 917 | } |
| 918 | |
| 919 | #[test] |
| 920 | fn test_is_user_fixable() { |
nothing calls this directly
no outgoing calls
no test coverage detected