MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_parse_pre_invocation_turn_start

Function test_parse_pre_invocation_turn_start

atomic-agent/src/hooks/agy.rs:493–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected