()
| 305 | |
| 306 | #[test] |
| 307 | fn test_tracking_error_display() { |
| 308 | let err = TrackingError::PathNotFound { |
| 309 | path: "missing.txt".to_string(), |
| 310 | }; |
| 311 | assert!(err.to_string().contains("missing.txt")); |
| 312 | |
| 313 | let err = TrackingError::AlreadyTracked { |
| 314 | path: "file.txt".to_string(), |
| 315 | }; |
| 316 | assert!(err.to_string().contains("Already tracked")); |
| 317 | |
| 318 | let err = TrackingError::NotTracked { |
| 319 | path: "file.txt".to_string(), |
| 320 | }; |
| 321 | assert!(err.to_string().contains("Not tracked")); |
| 322 | |
| 323 | let err = TrackingError::InternalPath { |
| 324 | path: ".atomic".to_string(), |
| 325 | }; |
| 326 | assert!(err.to_string().contains("internal")); |
| 327 | |
| 328 | let err = TrackingError::DestinationExists { |
| 329 | path: "dest.txt".to_string(), |
| 330 | }; |
| 331 | assert!(err.to_string().contains("already exists")); |
| 332 | } |
| 333 | |
| 334 | // Collect Files Tests |
| 335 |
nothing calls this directly
no outgoing calls
no test coverage detected