()
| 809 | |
| 810 | #[test] |
| 811 | fn test_envelope_prompt_hash() { |
| 812 | let session = make_session(); |
| 813 | let event = make_event(); |
| 814 | let options = make_options(&session, &event); |
| 815 | |
| 816 | let env = build_turn_envelope(&options, &[]); |
| 817 | assert!(env.prompt_hash.is_some()); |
| 818 | let expected = blake3::hash(b"Fix the authentication bug in login.rs"); |
| 819 | assert_eq!(env.prompt_hash.unwrap(), *expected.as_bytes()); |
| 820 | } |
| 821 | |
| 822 | #[test] |
| 823 | fn test_envelope_no_prompt() { |
nothing calls this directly
no test coverage detected