()
| 568 | |
| 569 | #[test] |
| 570 | fn test_parse_session_start() { |
| 571 | let hook = make_hook(); |
| 572 | let input = br#"{"session_id": "cp-abc123", "timestamp": 1700000000, "cwd": "/tmp/proj"}"#; |
| 573 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 574 | assert_eq!(event.session_id, "cp-abc123"); |
| 575 | assert_eq!(event.event_type, HookType::SessionStart); |
| 576 | } |
| 577 | |
| 578 | #[test] |
| 579 | fn test_parse_session_start_camel_case_session_id() { |
nothing calls this directly
no test coverage detected