()
| 1533 | |
| 1534 | #[test] |
| 1535 | fn test_hash_deterministic() { |
| 1536 | let a = make_attestation(); |
| 1537 | let bytes1 = a.serialize().unwrap(); |
| 1538 | let bytes2 = a.serialize().unwrap(); |
| 1539 | |
| 1540 | let (_, hash1) = Attestation::deserialize(&bytes1).unwrap(); |
| 1541 | let (_, hash2) = Attestation::deserialize(&bytes2).unwrap(); |
| 1542 | assert_eq!(hash1, hash2); |
| 1543 | } |
| 1544 | |
| 1545 | #[test] |
| 1546 | fn test_different_content_different_hash() { |
nothing calls this directly
no test coverage detected