()
| 1012 | |
| 1013 | #[test] |
| 1014 | fn test_hash_deterministic() { |
| 1015 | let a = make_attestation(); |
| 1016 | let bytes1 = a.serialize().unwrap(); |
| 1017 | let bytes2 = a.serialize().unwrap(); |
| 1018 | |
| 1019 | let (_, hash1) = Attestation::deserialize(&bytes1).unwrap(); |
| 1020 | let (_, hash2) = Attestation::deserialize(&bytes2).unwrap(); |
| 1021 | assert_eq!(hash1, hash2); |
| 1022 | } |
| 1023 | |
| 1024 | #[test] |
| 1025 | fn test_different_content_different_hash() { |
nothing calls this directly
no test coverage detected