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

Function test_user_fixable_detection

atomic-repository/src/error.rs:580–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

578
579 #[test]
580 fn test_user_fixable_detection() {
581 let err = RepositoryError::UncommittedChanges;
582 assert!(err.is_user_fixable());
583
584 let err = RepositoryError::MergeConflict {
585 description: "conflict in file.txt".to_string(),
586 };
587 assert!(err.is_user_fixable());
588
589 let err = RepositoryError::Locked;
590 assert!(!err.is_user_fixable());
591 }
592
593 #[test]
594 fn test_error_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected