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

Function test_invalid_magic_error

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

Source from the content-addressed store, hash-verified

350
351 #[test]
352 fn test_invalid_magic_error() {
353 let err = FormatError::InvalidMagic {
354 got: [0x00, 0x01, 0x02, 0x03],
355 };
356 let msg = err.to_string();
357 assert!(msg.contains("invalid magic bytes"));
358 assert!(msg.contains("[0, 1, 2, 3]"));
359 }
360
361 #[test]
362 fn test_unsupported_version_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected