()
| 562 | |
| 563 | #[test] |
| 564 | fn test_not_found_detection() { |
| 565 | let err = RepositoryError::NotFound { |
| 566 | path: "/some/path".to_string(), |
| 567 | }; |
| 568 | assert!(err.is_not_found()); |
| 569 | |
| 570 | let err = RepositoryError::NotInRepository; |
| 571 | assert!(err.is_not_found()); |
| 572 | |
| 573 | let err = RepositoryError::ViewNotFound { |
| 574 | name: "main".to_string(), |
| 575 | }; |
| 576 | assert!(!err.is_not_found()); |
| 577 | } |
| 578 | |
| 579 | #[test] |
| 580 | fn test_user_fixable_detection() { |
nothing calls this directly
no outgoing calls
no test coverage detected