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:1356–1370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1354
1355 #[test]
1356 fn test_parse_pre_invocation_turn_start() {
1357 let hook = make_hook();
1358 let input = br#"{
1359 "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
1360 "transcriptPath": "/home/u/.gemini/antigravity-cli/brain/ec33/logs/transcript.jsonl",
1361 "artifactDirectoryPath": "/home/u/.gemini/antigravity-cli/brain/ec33",
1362 "workspacePaths": ["/workspace/project"],
1363 "invocationNum": 0,
1364 "initialNumSteps": 0
1365 }"#;
1366 let event = hook.parse_event(HookType::TurnStart, input).unwrap();
1367 assert_eq!(event.session_id, "ec33ebf9-0cba-4100-8142-c61503f6c587");
1368 assert_eq!(event.event_type, HookType::TurnStart);
1369 assert!(event.transcript_path.is_some());
1370 }
1371
1372 #[test]
1373 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