()
| 918 | |
| 919 | #[test] |
| 920 | fn test_is_user_fixable() { |
| 921 | assert!(CliError::repository_not_found("/path").is_user_fixable()); |
| 922 | assert!(CliError::NothingToRecord.is_user_fixable()); |
| 923 | assert!(CliError::FileNotTracked { |
| 924 | path: "test.txt".into() |
| 925 | } |
| 926 | .is_user_fixable()); |
| 927 | |
| 928 | assert!(!CliError::Cancelled.is_user_fixable()); |
| 929 | assert!(!CliError::Io(std::io::Error::other("test")).is_user_fixable()); |
| 930 | } |
| 931 | |
| 932 | #[test] |
| 933 | fn test_requires_force_is_user_fixable_not_internal() { |
nothing calls this directly
no outgoing calls
no test coverage detected