()
| 1137 | |
| 1138 | #[test] |
| 1139 | fn test_constructor_repository_not_found() { |
| 1140 | let err = CliError::repository_not_found("/home/user"); |
| 1141 | match err { |
| 1142 | CliError::RepositoryNotFound { searched_path } => { |
| 1143 | assert_eq!(searched_path, PathBuf::from("/home/user")); |
| 1144 | } |
| 1145 | _ => panic!("Wrong error variant"), |
| 1146 | } |
| 1147 | } |
| 1148 | |
| 1149 | #[test] |
| 1150 | fn test_constructor_repository_exists() { |
nothing calls this directly
no outgoing calls
no test coverage detected