()
| 639 | |
| 640 | #[test] |
| 641 | fn test_builder_prompt_hash_from_text() { |
| 642 | let e = SessionEnvelope::builder("s", "a") |
| 643 | .prompt_hash_from_text("Fix the bug") |
| 644 | .build(); |
| 645 | |
| 646 | assert!(e.prompt_hash.is_some()); |
| 647 | let expected = blake3::hash(b"Fix the bug"); |
| 648 | assert_eq!(e.prompt_hash.unwrap(), *expected.as_bytes()); |
| 649 | } |
| 650 | |
| 651 | #[test] |
| 652 | fn test_builder_prompt_hash_direct() { |
nothing calls this directly
no test coverage detected