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

Function test_serialize_has_magic

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

Source from the content-addressed store, hash-verified

1486
1487 #[test]
1488 fn test_serialize_has_magic() {
1489 let a = make_attestation();
1490 let bytes = a.serialize().unwrap();
1491
1492 assert!(bytes.len() > 4);
1493 assert_eq!(&bytes[..4], b"ATST");
1494 }
1495
1496 #[test]
1497 fn test_is_attestation_valid() {

Callers

nothing calls this directly

Calls 3

make_attestationFunction · 0.85
unwrapMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected