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

Function test_error_is_not_found

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

Source from the content-addressed store, hash-verified

520
521#[test]
522fn test_error_is_not_found() {
523 let err = ChangeStoreError::NotFound {
524 hash: "ABCDEF".to_string(),
525 };
526 assert!(err.is_not_found());
527
528 let err = ChangeStoreError::Io(std::io::Error::other("test"));
529 assert!(!err.is_not_found());
530}
531
532#[test]
533fn test_error_is_corruption() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected