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

Function test_apply_error_detection

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

Source from the content-addressed store, hash-verified

628
629 #[test]
630 fn test_apply_error_detection() {
631 let err = RepositoryError::Apply("conflict".to_string());
632 assert!(err.is_apply_error());
633
634 let err = RepositoryError::ChangeNotFound {
635 hash: "ABC123".to_string(),
636 };
637 assert!(err.is_apply_error());
638
639 let err = RepositoryError::ChangeAlreadyApplied {
640 hash: "ABC123".to_string(),
641 };
642 assert!(err.is_apply_error());
643 }
644
645 #[test]
646 fn test_archive_error_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected