()
| 1803 | |
| 1804 | #[test] |
| 1805 | fn test_status_error_display() { |
| 1806 | let err = StatusError::Database("connection failed".to_string()); |
| 1807 | assert!(err.to_string().contains("connection failed")); |
| 1808 | |
| 1809 | let err = StatusError::InvalidState("corrupt tree".to_string()); |
| 1810 | assert!(err.to_string().contains("corrupt tree")); |
| 1811 | |
| 1812 | let err = StatusError::PathError { |
| 1813 | path: "/some/path".to_string(), |
| 1814 | details: "invalid utf8".to_string(), |
| 1815 | }; |
| 1816 | assert!(err.to_string().contains("/some/path")); |
| 1817 | } |
| 1818 | } |
nothing calls this directly
no outgoing calls
no test coverage detected