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

Function test_deserialize_wrong_magic

atomic-core/src/change/attestation.rs:1521–1524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1519
1520 #[test]
1521 fn test_deserialize_wrong_magic() {
1522 let result = Attestation::deserialize(b"NOPE____data");
1523 assert!(result.is_err());
1524 }
1525
1526 #[test]
1527 fn test_deserialize_corrupted_payload() {

Callers

nothing calls this directly

Calls 1

deserializeFunction · 0.50

Tested by

no test coverage detected