()
| 1001 | |
| 1002 | #[test] |
| 1003 | fn test_internal_error_suggestion() { |
| 1004 | let err = CliError::Internal(anyhow::anyhow!("bug")); |
| 1005 | let suggestion = err.suggestion(); |
| 1006 | assert!(suggestion.is_some()); |
| 1007 | assert!(suggestion.unwrap().contains("bug")); |
| 1008 | } |
| 1009 | |
| 1010 | #[test] |
| 1011 | fn test_cancelled_no_suggestion() { |
nothing calls this directly
no test coverage detected