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

Source from the content-addressed store, hash-verified

928
929 #[test]
930 fn test_parse_after_agent_turn_end() {
931 let hook = make_hook();
932 let input = br#"{"session_id": "sess-123", "prompt": "Fix the bug", "prompt_response": "I fixed it"}"#;
933 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
934 assert_eq!(event.session_id, "sess-123");
935 assert_eq!(event.event_type, HookType::TurnEnd);
936 assert_eq!(event.prompt.as_deref(), Some("Fix the bug"));
937 }
938
939 #[test]
940 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