()
| 1172 | |
| 1173 | #[test] |
| 1174 | fn test_constructor_invalid_path_without_source() { |
| 1175 | let err = CliError::invalid_path("/nonexistent", None); |
| 1176 | match err { |
| 1177 | CliError::InvalidPath { path, source } => { |
| 1178 | assert_eq!(path, PathBuf::from("/nonexistent")); |
| 1179 | assert!(source.is_none()); |
| 1180 | } |
| 1181 | _ => panic!("Wrong error variant"), |
| 1182 | } |
| 1183 | } |
| 1184 | |
| 1185 | #[test] |
| 1186 | fn test_constructor_view_not_found() { |
nothing calls this directly
no outgoing calls
no test coverage detected