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

Function test_suggestion_not_a_repository

atomic-agent/src/error.rs:640–646  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638
639 #[test]
640 fn test_suggestion_not_a_repository() {
641 let err = AgentError::NotARepository {
642 path: PathBuf::from("/tmp"),
643 };
644 let suggestion = err.suggestion().unwrap();
645 assert!(suggestion.contains("atomic init"));
646 }
647
648 #[test]
649 fn test_suggestion_none_for_generic_errors() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
suggestionMethod · 0.45

Tested by

no test coverage detected