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

Function test_mock_agent_parse_event_success

atomic-agent/src/hooks/mod.rs:580–586  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

578
579 #[test]
580 fn test_mock_agent_parse_event_success() {
581 let agent = MockAgent::new("test");
582 let input = br#"{"session_id": "sess-123"}"#;
583 let event = agent.parse_event(HookType::TurnStart, input).unwrap();
584 assert_eq!(event.session_id, "sess-123");
585 assert_eq!(event.event_type, HookType::TurnStart);
586 }
587
588 #[test]
589 fn test_mock_agent_parse_event_empty_input() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected