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