()
| 491 | |
| 492 | #[test] |
| 493 | fn test_parse_pre_invocation_turn_start() { |
| 494 | let hook = make_hook(); |
| 495 | let input = br#"{ |
| 496 | "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587", |
| 497 | "transcriptPath": "/home/u/.gemini/antigravity-cli/brain/ec33/logs/transcript.jsonl", |
| 498 | "artifactDirectoryPath": "/home/u/.gemini/antigravity-cli/brain/ec33", |
| 499 | "workspacePaths": ["/workspace/project"], |
| 500 | "invocationNum": 0, |
| 501 | "initialNumSteps": 0 |
| 502 | }"#; |
| 503 | let event = hook.parse_event(HookType::TurnStart, input).unwrap(); |
| 504 | assert_eq!(event.session_id, "ec33ebf9-0cba-4100-8142-c61503f6c587"); |
| 505 | assert_eq!(event.event_type, HookType::TurnStart); |
| 506 | assert!(event.transcript_path.is_some()); |
| 507 | } |
| 508 | |
| 509 | #[test] |
| 510 | fn test_parse_stop_turn_end() { |
nothing calls this directly
no test coverage detected