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

Function test_serialize_has_magic

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

Source from the content-addressed store, hash-verified

965
966 #[test]
967 fn test_serialize_has_magic() {
968 let a = make_attestation();
969 let bytes = a.serialize().unwrap();
970
971 assert!(bytes.len() > 4);
972 assert_eq!(&bytes[..4], b"ATST");
973 }
974
975 #[test]
976 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