()
| 1426 | |
| 1427 | #[test] |
| 1428 | fn test_builder_with_previous() { |
| 1429 | let prev = Hash::of(b"prev-attest"); |
| 1430 | let a = Attestation::builder("sess-2", make_agent()) |
| 1431 | .previous_attestation(prev) |
| 1432 | .build(); |
| 1433 | |
| 1434 | assert!(a.is_chained()); |
| 1435 | assert_eq!(a.previous_attestation, Some(prev)); |
| 1436 | } |
| 1437 | |
| 1438 | #[test] |
| 1439 | fn test_builder_with_notes() { |
nothing calls this directly
no test coverage detected