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

Function test_error_is_corruption

atomic-repository/src/changestore/tests.rs:533–544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531
532#[test]
533fn test_error_is_corruption() {
534 let err = ChangeStoreError::HashMismatch {
535 expected: "ABCDEF".to_string(),
536 computed: "123456".to_string(),
537 };
538 assert!(err.is_corruption());
539
540 let err = ChangeStoreError::NotFound {
541 hash: "ABCDEF".to_string(),
542 };
543 assert!(!err.is_corruption());
544}
545
546#[test]
547fn test_error_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected