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

Function test_parse_after_agent_turn_end

atomic-agent/src/hooks/gemini_cli.rs:897–904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

895
896 #[test]
897 fn test_parse_after_agent_turn_end() {
898 let hook = make_hook();
899 let input = br#"{"session_id": "sess-123", "prompt": "Fix the bug", "prompt_response": "I fixed it"}"#;
900 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
901 assert_eq!(event.session_id, "sess-123");
902 assert_eq!(event.event_type, HookType::TurnEnd);
903 assert_eq!(event.prompt.as_deref(), Some("Fix the bug"));
904 }
905
906 #[test]
907 fn test_parse_before_tool() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected