()
| 905 | |
| 906 | #[test] |
| 907 | fn test_builder_with_previous() { |
| 908 | let prev = Hash::of(b"prev-attest"); |
| 909 | let a = Attestation::builder("sess-2", make_agent()) |
| 910 | .previous_attestation(prev) |
| 911 | .build(); |
| 912 | |
| 913 | assert!(a.is_chained()); |
| 914 | assert_eq!(a.previous_attestation, Some(prev)); |
| 915 | } |
| 916 | |
| 917 | #[test] |
| 918 | fn test_builder_with_notes() { |
nothing calls this directly
no test coverage detected