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

Function test_error_display_format

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

Source from the content-addressed store, hash-verified

668
669 #[test]
670 fn test_error_display_format() {
671 // Ensure Display is implemented and produces human-readable output
672 let err = FormatError::HashMismatch {
673 expected: "AAAA1234".to_string(),
674 computed: "BBBB5678".to_string(),
675 };
676 let display = format!("{}", err);
677 assert!(display.contains("hash mismatch"));
678 assert!(display.contains("AAAA1234"));
679 assert!(display.contains("BBBB5678"));
680 }
681}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected