MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_internal_error_suggestion

Function test_internal_error_suggestion

atomic-cli/src/error.rs:990–995  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

suggestionMethod · 0.45

Tested by

no test coverage detected