()
| 1148 | |
| 1149 | #[test] |
| 1150 | fn test_constructor_repository_exists() { |
| 1151 | let err = CliError::repository_exists("/home/user"); |
| 1152 | match err { |
| 1153 | CliError::RepositoryExists { path } => { |
| 1154 | assert_eq!(path, PathBuf::from("/home/user")); |
| 1155 | } |
| 1156 | _ => panic!("Wrong error variant"), |
| 1157 | } |
| 1158 | } |
| 1159 | |
| 1160 | #[test] |
| 1161 | fn test_constructor_invalid_path_with_source() { |
nothing calls this directly
no outgoing calls
no test coverage detected