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

Function test_hash_mismatch_error

atomic-core/src/change/format_v3/error.rs:432–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

430
431 #[test]
432 fn test_hash_mismatch_error() {
433 let err = FormatError::HashMismatch {
434 expected: "AAAA".to_string(),
435 computed: "BBBB".to_string(),
436 };
437 let msg = err.to_string();
438 assert!(msg.contains("hash mismatch"));
439 assert!(msg.contains("AAAA"));
440 assert!(msg.contains("BBBB"));
441 }
442
443 #[test]
444 fn test_hash_not_found_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected