()
| 988 | |
| 989 | #[test] |
| 990 | fn test_internal_error_suggestion() { |
| 991 | let err = CliError::Internal(anyhow::anyhow!("bug")); |
| 992 | let suggestion = err.suggestion(); |
| 993 | assert!(suggestion.is_some()); |
| 994 | assert!(suggestion.unwrap().contains("bug")); |
| 995 | } |
| 996 | |
| 997 | #[test] |
| 998 | fn test_cancelled_no_suggestion() { |
nothing calls this directly
no test coverage detected