()
| 884 | |
| 885 | #[test] |
| 886 | fn test_is_file_error() { |
| 887 | assert!(CliError::file_not_found("test.txt").is_file_error()); |
| 888 | assert!(CliError::FileNotTracked { |
| 889 | path: "test.txt".into() |
| 890 | } |
| 891 | .is_file_error()); |
| 892 | assert!(CliError::FileAlreadyTracked { |
| 893 | path: "test.txt".into() |
| 894 | } |
| 895 | .is_file_error()); |
| 896 | assert!(CliError::PathOutsideRepository { |
| 897 | path: "../outside".into() |
| 898 | } |
| 899 | .is_file_error()); |
| 900 | |
| 901 | assert!(!CliError::NothingToRecord.is_file_error()); |
| 902 | } |
| 903 | |
| 904 | #[test] |
| 905 | fn test_is_remote_error() { |
nothing calls this directly
no outgoing calls
no test coverage detected