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